diff --git a/commands/invite.js b/commands/invite.js index afc2376..f918bfa 100644 --- a/commands/invite.js +++ b/commands/invite.js @@ -4,12 +4,12 @@ module.exports = { description: 'Add Anitrox to your beautiful server!', options: [], - async parseMessage (client, config, message, args) { - await message.channel.send(this.handle(client, config, message.author, args.slice(0).join(' '))); + async parseMessage (client, config, message) { + await message.channel.send(this.handle(client, config, message.author)); }, async parseInteraction (client, config, interaction) { - await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getString('question'))); + await interaction.reply(this.handle(client, config, interaction.user)); }, handle (_, config, user) { diff --git a/commands/kiss.js b/commands/kiss.js index 871257e..d3c132a 100644 --- a/commands/kiss.js +++ b/commands/kiss.js @@ -28,7 +28,7 @@ module.exports = { }, handle (client, config, user, target) { - if (!target) return client.generateErrorMessage('You need to @mention a user!', user.displayAvaterURL()); + if (!target) return client.generateErrorMessage('You need to @mention a user!', user.displayAvatarURL()); const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)]; return { @@ -37,7 +37,7 @@ module.exports = { description: `${target} You have been kissed by ${user}!`, color: 9442302, footer: { - icon_url: user.displayAvaterURL(), + icon_url: user.displayAvatarURL(), text: config.footerTxt }, image: { diff --git a/commands/ping.js b/commands/ping.js index 3988921..ff623e2 100644 --- a/commands/ping.js +++ b/commands/ping.js @@ -5,11 +5,11 @@ module.exports = { options: [], async parseMessage (client, config, message, args) { - await message.channel.send(await this.handle(client, config, message.author, args.slice(0).join(' '))); + await message.channel.send(await this.handle(client, config, message.author)); }, async parseInteraction (client, config, interaction) { - await interaction.reply(await this.handle(client, config, interaction.user, interaction.options.getString('question'))); + await interaction.reply(await this.handle(client, config, interaction.user)); }, async handle (client, config, user) { diff --git a/commands/restart.js b/commands/restart.js index ebd8577..e21689a 100644 --- a/commands/restart.js +++ b/commands/restart.js @@ -4,12 +4,12 @@ module.exports = { description: 'Restarts the bot', options: [], - async parseMessage (client, config, message, args) { - await message.channel.send(await this.handle(client, config, message.author, args.slice(0).join(' '))); + async parseMessage (client, config, message) { + await message.channel.send(await this.handle(client, config, message.author)); }, async parseInteraction (client, config, interaction) { - await interaction.reply(await this.handle(client, config, interaction.user, interaction.options.getString('question'))); + await interaction.reply(await this.handle(client, config, interaction.user)); }, async handle (client, config, user) { diff --git a/commands/setnick.js b/commands/setnick.js index dd9ea3d..090fe5a 100644 --- a/commands/setnick.js +++ b/commands/setnick.js @@ -11,12 +11,12 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.STRING }], - async parseMessage (client, config, message, args) { - await message.channel.send(this.handle(client, config, message.author, args.slice(0).join(' '))); + async parseMessage (client, config, message) { + await message.channel.send(this.handle(client, config, message.author)); }, async parseInteraction (client, config, interaction) { - await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getString('question'))); + await interaction.reply(this.handle(client, config, interaction.user)); }, handle (client, config, user, newNick) { diff --git a/commands/stop.js b/commands/stop.js index 86d355f..26bad67 100644 --- a/commands/stop.js +++ b/commands/stop.js @@ -4,13 +4,13 @@ module.exports = { description: "IT'S TIME TO STOP!... the bot", options: [], - async parseMessage (client, config, message, args) { - await message.channel.send(await this.handle(client, config, message.author, args.slice(0).join(' '))); + async parseMessage (client, config, message) { + await message.channel.send(await this.handle(client, config, message.author)); process.exit(); }, async parseInteraction (client, config, interaction) { - await interaction.reply(await this.handle(client, config, interaction.user, interaction.options.getString('question'))); + await interaction.reply(await this.handle(client, config, interaction.user)); process.exit(); },