Update interactionCreate event

This commit is contained in:
Christer Warén 2021-09-16 02:17:14 +03:00
parent 126d5e9ba2
commit 00f6ee71e0

View File

@ -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);