From 7b718c43aa3cb112a304c263c7e7ffa27148e8eb Mon Sep 17 00:00:00 2001 From: Sophie Marie Date: Tue, 6 Dec 2022 21:06:39 -0600 Subject: [PATCH] Change constants to use ApplicationCommandOptionType --- commands/8ball.js | 4 ++-- commands/avatar.js | 6 +++--- commands/bonk.js | 4 ++-- commands/cheese.js | 4 ++-- commands/choose.js | 4 ++-- commands/cuddle.js | 4 ++-- commands/eval.js | 4 ++-- commands/help.js | 4 ++-- commands/hug.js | 4 ++-- commands/kiss.js | 4 ++-- commands/leskiss.js | 4 ++-- commands/lick.js | 4 ++-- commands/nom.js | 4 ++-- commands/pat.js | 4 ++-- commands/poke.js | 4 ++-- commands/reload.js | 4 ++-- commands/slap.js | 4 ++-- commands/snuggle.js | 4 ++-- commands/uinfo.js | 4 ++-- 19 files changed, 39 insertions(+), 39 deletions(-) diff --git a/commands/8ball.js b/commands/8ball.js index b4a5679..5549355 100644 --- a/commands/8ball.js +++ b/commands/8ball.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); module.exports = { @@ -8,7 +8,7 @@ module.exports = { name: 'question', description: 'The question to ask Anitrox', required: true, - type: Constants.ApplicationCommandOptionTypes.STRING + type: ApplicationCommandOptionType.String }], async parseInteraction (client, config, interaction) { diff --git a/commands/avatar.js b/commands/avatar.js index 4a01f82..909c106 100644 --- a/commands/avatar.js +++ b/commands/avatar.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); module.exports = { @@ -8,13 +8,13 @@ module.exports = { name: 'user', description: 'Another user', required: false, - type: Constants.ApplicationCommandOptionTypes.USER + type: ApplicationCommandOptionType.User }, { name: 'userid', description: "Another user's ID", required: false, - type: Constants.ApplicationCommandOptionTypes.STRING + type: ApplicationCommandOptionType.User }], async parseInteraction (client, config, interaction) { diff --git a/commands/bonk.js b/commands/bonk.js index f7f17a9..9a8ec47 100644 --- a/commands/bonk.js +++ b/commands/bonk.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); module.exports = { @@ -8,7 +8,7 @@ module.exports = { name: 'user', description: 'The user to bonk', required: true, - type: Constants.ApplicationCommandOptionTypes.USER + type: ApplicationCommandOptionType.User }], async parseInteraction (client, config, interaction) { diff --git a/commands/cheese.js b/commands/cheese.js index fdfee7b..41278a8 100644 --- a/commands/cheese.js +++ b/commands/cheese.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); module.exports = { @@ -8,7 +8,7 @@ module.exports = { name: 'user', description: 'The user to cheese', required: false, - type: Constants.ApplicationCommandOptionTypes.USER + type: ApplicationCommandOptionType.User }], async parseInteraction (client, config, interaction) { diff --git a/commands/choose.js b/commands/choose.js index f7a0dcb..4c533f1 100644 --- a/commands/choose.js +++ b/commands/choose.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); module.exports = { @@ -8,7 +8,7 @@ module.exports = { name: `option${i + 1}`, description: 'Another option', required: i === 0, - type: Constants.ApplicationCommandOptionTypes.STRING + type: ApplicationCommandOptionType.String })), async parseInteraction (client, config, interaction) { diff --git a/commands/cuddle.js b/commands/cuddle.js index af515a0..13d76cb 100644 --- a/commands/cuddle.js +++ b/commands/cuddle.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); const gifchoices = [ 'https://i.pinimg.com/originals/4d/89/d7/4d89d7f963b41a416ec8a55230dab31b.gif', @@ -15,7 +15,7 @@ module.exports = { name: 'user', description: 'The user to cuddle', required: true, - type: Constants.ApplicationCommandOptionTypes.USER + type: ApplicationCommandOptionType.User }], async parseInteraction (client, config, interaction) { diff --git a/commands/eval.js b/commands/eval.js index 48b6426..107c573 100644 --- a/commands/eval.js +++ b/commands/eval.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); const { inspect } = require('util'); module.exports = { @@ -9,7 +9,7 @@ module.exports = { name: 'code', description: 'The string to evaluate', required: true, - type: Constants.ApplicationCommandOptionTypes.STRING + type: ApplicationCommandOptionType.String }], async parseInteraction (client, config, interaction) { diff --git a/commands/help.js b/commands/help.js index 4941fac..413a3e1 100644 --- a/commands/help.js +++ b/commands/help.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); module.exports = { @@ -8,7 +8,7 @@ module.exports = { name: 'help', description: 'The command you want information on', required: false, - type: Constants.ApplicationCommandOptionTypes.STRING + type: ApplicationCommandOptionType.String }], async parseInteraction (client, config, interaction) { diff --git a/commands/hug.js b/commands/hug.js index e079159..f4bc7b1 100644 --- a/commands/hug.js +++ b/commands/hug.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); const gifchoices = [ 'https://cdn.discordapp.com/attachments/803658122299572255/807670647920001044/hug2.gif', @@ -16,7 +16,7 @@ module.exports = { name: 'user', description: 'The user to hug', required: true, - type: Constants.ApplicationCommandOptionTypes.USER + type: ApplicationCommandOptionType.String }], async parseInteraction (client, config, interaction) { diff --git a/commands/kiss.js b/commands/kiss.js index 3e11842..ad8110a 100644 --- a/commands/kiss.js +++ b/commands/kiss.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); const gifchoices = [ 'https://cdn.discordapp.com/attachments/803658122299572255/807671954055626812/kiss5.gif', @@ -16,7 +16,7 @@ module.exports = { name: 'user', description: 'The user to kiss', required: true, - type: Constants.ApplicationCommandOptionTypes.USER + type: ApplicationCommandOptionType.User }], async parseInteraction (client, config, interaction) { diff --git a/commands/leskiss.js b/commands/leskiss.js index f595539..474e3dd 100644 --- a/commands/leskiss.js +++ b/commands/leskiss.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); const gifchoices = [ 'https://cdn.discordapp.com/attachments/793537380330111028/803833954750038066/gif5.gif', @@ -26,7 +26,7 @@ module.exports = { name: 'user', description: 'The user to kiss', required: true, - type: Constants.ApplicationCommandOptionTypes.USER + type: ApplicationCommandOptionType.User }], async parseInteraction (client, config, interaction) { diff --git a/commands/lick.js b/commands/lick.js index 80c038f..4595a3f 100644 --- a/commands/lick.js +++ b/commands/lick.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); const gifchoices = [ 'https://cdn.discordapp.com/attachments/803658122299572255/805314244123951114/cef569820773b0f5d54ee34cfa18e1f8.gif', @@ -15,7 +15,7 @@ module.exports = { name: 'user', description: 'The user to lick', required: true, - type: Constants.ApplicationCommandOptionTypes.USER + type: ApplicationCommandOptionType.User }], async parseInteraction (client, config, interaction) { diff --git a/commands/nom.js b/commands/nom.js index c3dcfc3..c801a8f 100644 --- a/commands/nom.js +++ b/commands/nom.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); const gifchoices = [ 'https://i.imgur.com/Ns1RBzX.gif', @@ -15,7 +15,7 @@ module.exports = { name: 'user', description: 'The user to nom', required: true, - type: Constants.ApplicationCommandOptionTypes.USER + type: ApplicationCommandOptionType.User }], async parseInteraction (client, config, interaction) { diff --git a/commands/pat.js b/commands/pat.js index 2737e1b..8f73878 100644 --- a/commands/pat.js +++ b/commands/pat.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); const gifchoices = [ 'https://cdn.discordapp.com/attachments/803658122299572255/803708174293008474/tenor.gif', @@ -14,7 +14,7 @@ module.exports = { name: 'user', description: 'The user to pat', required: true, - type: Constants.ApplicationCommandOptionTypes.USER + type: ApplicationCommandOptionType.User }], async parseInteraction (client, config, interaction) { diff --git a/commands/poke.js b/commands/poke.js index bb7c343..38a3341 100644 --- a/commands/poke.js +++ b/commands/poke.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); const gifchoices = [ 'https://i.pinimg.com/originals/b4/95/fb/b495fb19f4b9a1b04f48297b676c497b.gif', @@ -14,7 +14,7 @@ module.exports = { name: 'user', description: 'The user to poke', required: true, - type: Constants.ApplicationCommandOptionTypes.USER + type: ApplicationCommandOptionType.User }], async parseInteraction (client, config, interaction) { diff --git a/commands/reload.js b/commands/reload.js index a6f847f..7e95046 100644 --- a/commands/reload.js +++ b/commands/reload.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); module.exports = { @@ -8,7 +8,7 @@ module.exports = { name: `option${i + 0}`, description: 'Another option', required: i === 0, - type: Constants.ApplicationCommandOptionTypes.STRING + type: ApplicationCommandOptionType.User })), async parseInteraction (client, config, interaction) { diff --git a/commands/slap.js b/commands/slap.js index 7a84464..8ccb1cb 100644 --- a/commands/slap.js +++ b/commands/slap.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); module.exports = { @@ -8,7 +8,7 @@ module.exports = { name: 'user', description: 'The user to slap', required: true, - type: Constants.ApplicationCommandOptionTypes.USER + type: ApplicationCommandOptionType.User }], async parseInteraction (client, config, interaction) { diff --git a/commands/snuggle.js b/commands/snuggle.js index 6ecb14f..d159cc9 100644 --- a/commands/snuggle.js +++ b/commands/snuggle.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); const gifchoices = [ 'https://media.discordapp.net/attachments/803658122299572255/806775382995894282/anime-couple-snuggle-gif-5.gif?width=450&height=238', @@ -14,7 +14,7 @@ module.exports = { name: 'user', description: 'The user to snuggle', required: true, - type: Constants.ApplicationCommandOptionTypes.USER + type: ApplicationCommandOptionType.User }], async parseInteraction (client, config, interaction) { diff --git a/commands/uinfo.js b/commands/uinfo.js index af3555b..363ff0a 100644 --- a/commands/uinfo.js +++ b/commands/uinfo.js @@ -1,4 +1,4 @@ -const { Constants } = require('discord.js'); +const { ApplicationCommandOptionType } = require('discord.js'); module.exports = { @@ -8,7 +8,7 @@ module.exports = { name: 'user', description: 'Another user', required: false, - type: Constants.ApplicationCommandOptionTypes.USER + type: ApplicationCommandOptionType.User }], async parseInteraction (client, config, interaction) {