From c2fbf3817925d08ca4a57b6a8803fd7b0d10c826 Mon Sep 17 00:00:00 2001 From: ame Date: Tue, 31 Oct 2023 22:33:02 -0500 Subject: subcommands --- commands/util/emote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/util/emote.js') diff --git a/commands/util/emote.js b/commands/util/emote.js index c88f0b4..a6f4430 100644 --- a/commands/util/emote.js +++ b/commands/util/emote.js @@ -20,7 +20,7 @@ module.exports = { {type:"user",name:"user",desc:"user to emote to (may be optional)",required:false,autocomplete:false}], async s_main (client,Discord,interaction){ let emote = interaction.options.getString("emote"); - if(Object.keys(config.avaliable_multi).includes(emote)||Object.keys(config.avaliable_solo).includes(emote)) + if(Object.keys(config.avaliable_multi.value).includes(emote)||Object.keys(config.avaliable_solo.value).includes(emote)) this.exec(client,{message:interaction,emote:emote,mentioned:interaction.options.getUser("user")}) else interaction.reply({content:"invalid emote!", ephemeral: true}) -- cgit v1.2.3