fix function signatures and spelling errors

This commit is contained in:
Nathaniel Mason 2022-04-23 19:07:50 +01:00
parent 8c431e95c7
commit a8409b4828
6 changed files with 16 additions and 16 deletions

View File

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

View File

@ -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: {

View File

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

View File

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

View File

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

View File

@ -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();
},