mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-02 05:43:37 +00:00
Updated commands and interactionCreate event
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user