mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 06:33:18 +00:00
Update interactionCreate event
This commit is contained in:
parent
126d5e9ba2
commit
00f6ee71e0
@ -6,7 +6,7 @@ module.exports = {
|
|||||||
if (!permissions.has('VIEW_CHANNEL')) return;
|
if (!permissions.has('VIEW_CHANNEL')) return;
|
||||||
|
|
||||||
if (!permissions.has('EMBED_LINKS')) return interaction.reply({
|
if (!permissions.has('EMBED_LINKS')) return interaction.reply({
|
||||||
content: client.messages.noPermsEmbed,
|
content: client.messageEmojis["error"] + client.messages.noPermsEmbed,
|
||||||
ephemeral: true
|
ephemeral: true
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ module.exports = {
|
|||||||
command.execute(interaction, client);
|
command.execute(interaction, client);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
interaction.reply({
|
interaction.reply({
|
||||||
content: client.messages.runningCommandFailed,
|
content: client.messageEmojis["error"] + client.messages.runningCommandFailed,
|
||||||
ephemeral: true
|
ephemeral: true
|
||||||
});
|
});
|
||||||
console.error(error);
|
console.error(error);
|
||||||
@ -33,7 +33,7 @@ module.exports = {
|
|||||||
command.execute(interaction, client, command);
|
command.execute(interaction, client, command);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
interaction.reply({
|
interaction.reply({
|
||||||
content: client.messages.runningCommandFailed,
|
content: client.messageEmojis["error"] + client.messages.runningCommandFailed,
|
||||||
ephemeral: true
|
ephemeral: true
|
||||||
});
|
});
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
Loading…
Reference in New Issue
Block a user