I got a weird error (i guess)

Question: Basicly, the code is work when I use my bot and host it with visual studio code, but when I try with my friend bot and host it on Replit, the code doesn’t work. You can see the error and the code below. If you need more information to help me, feel free to ask me.


Repl link: https://replit.com/@mF1dv358/bot


Screenshot:
Imgur: The magic of the Internet
https ://imgur.com/gdwmnBe

From the error in the image it seems you have a problem with your black-word.js file. Looks like the data being null when fetched from the QuickDB.

I made some updates to your black-word.js file, try to see if it works

async execute(interaction) {
  let pesan = interaction.options.getString('kata');

  if(!interaction.member.permissions.has(PermissionFlagsBits.Administrator)) {
    return interaction.reply({
      embeds: [
        new EmbedBuilder()
        .setColor('Red')
        .setDescription('Kamu perlu memiliki izin `administrator` untuk menggunakan perintah ini!')
      ],
      ephemeral: true
    });
  };

  let data = await db.get(`black-word_${interaction.guild.id}`);
  
  // Check if data is null, initialize it with an empty array if it is
  if (data === null) {
    data = [];
  }

  if(data.includes(pesan)) {
    return interaction.reply({
      embeds: [
        new EmbedBuilder()
        .setColor('Red')
        .setDescription('Kata tersebut sudah terdaftar di database!')
      ],
      ephemeral: true
    });
  };

  await db.push(`black-word_${interaction.guild.id}`, pesan);
  interaction.reply({
    embeds: [
      new EmbedBuilder()
      .setColor('Navy')
      .setDescription(`${interaction.user} baru saja menambahkan black-word yaitu \`${pesan}\``)
    ]
  });
},