mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 05:40:24 +00:00
Updated interactionCreate & messageCreate events
This commit is contained in:
parent
b6c47d7c6f
commit
c4fb1d5147
@ -16,7 +16,10 @@ module.exports = {
|
|||||||
try {
|
try {
|
||||||
command.execute(interaction, client, Discord, command);
|
command.execute(interaction, client, Discord, command);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
interaction.reply(client.messages.runningCommandFailed);
|
interaction.reply({
|
||||||
|
content: client.messages.runningCommandFailed,
|
||||||
|
ephemeral: true
|
||||||
|
});
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
} else if (interaction.isSelectMenu() || interaction.isButton()){
|
} else if (interaction.isSelectMenu() || interaction.isButton()){
|
||||||
@ -27,7 +30,10 @@ module.exports = {
|
|||||||
try {
|
try {
|
||||||
command.execute(interaction, client, Discord, command);
|
command.execute(interaction, client, Discord, command);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
interaction.reply(client.messages.runningCommandFailed);
|
interaction.reply({
|
||||||
|
content: client.messages.runningCommandFailed,
|
||||||
|
ephemeral: true
|
||||||
|
});
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,10 @@ module.exports = {
|
|||||||
msg.delete();
|
msg.delete();
|
||||||
}, 30000);
|
}, 30000);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
msg.reply(client.messages.runningCommandFailed);
|
msg.reply({
|
||||||
|
content: client.messages.runningCommandFailed,
|
||||||
|
ephemeral: true
|
||||||
|
});
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user