added country and/or platform suggestion command

This commit is contained in:
2022-11-12 18:34:17 -03:00
parent 8a247e1889
commit 6e059f1721
2 changed files with 50 additions and 3 deletions

3
app.js
View File

@@ -28,7 +28,6 @@ for (const file of commandFiles) {
}
client.on(Events.InteractionCreate, async interaction => {
// if (!interaction.isChatInputCommand()) return;
const command = interaction.client.commands.get(interaction.commandName);
if (interaction.isChatInputCommand()) {
try {
@@ -57,7 +56,5 @@ client.on(Events.InteractionCreate, async interaction => {
console.error(`No command matching ${interaction.commandName} was found.`);
return;
}
});