Change constants to use ApplicationCommandOptionType

This commit is contained in:
Sophie Marie 2022-12-06 21:06:39 -06:00
parent f56dc3ff37
commit 7b718c43aa
No known key found for this signature in database
GPG Key ID: 0C9FB786E7770775
19 changed files with 39 additions and 39 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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