Professional Documents
Culture Documents
Muzyka Bot
Muzyka Bot
const fs = require('fs');
const path = require('path');
client.commands.set(command.data.name, command);
commands.push.apply(command);
}
client.on("ready", () => {
const quild_ids = client.guilds.cache.map(guild => guild.id);
try
{
await command.execute({client, interaction});
}
catch(err)
{
console.error(err);
await interaction.reply("An error occurred while executing that command.");
}
})