Updated commands and interactionCreate event

This commit is contained in:
Christer Warén
2021-09-05 03:17:21 +03:00
parent 16bc2aab52
commit 2d41c7a76b
13 changed files with 32 additions and 16 deletions

View File

@ -1,5 +1,3 @@
import Discord from "discord.js";
module.exports = {
name: 'interactionCreate',
async execute(client, interaction) {
@ -13,7 +11,7 @@ module.exports = {
if (!command) return;
try {
command.execute(interaction, client, Discord);
command.execute(interaction, client);
} catch (error) {
interaction.reply({
content: client.messages.runningCommandFailed,
@ -27,7 +25,7 @@ module.exports = {
if (!command) return;
try {
command.execute(interaction, client, Discord);
command.execute(interaction, client);
} catch (error) {
interaction.reply({
content: client.messages.runningCommandFailed,