aboutsummaryrefslogtreecommitdiff
path: root/commands/util
diff options
context:
space:
mode:
Diffstat (limited to 'commands/util')
-rw-r--r--commands/util/emote.js2
-rw-r--r--commands/util/help.js2
2 files changed, 2 insertions, 2 deletions
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})
diff --git a/commands/util/help.js b/commands/util/help.js
index b52ee12..a8d5cb4 100644
--- a/commands/util/help.js
+++ b/commands/util/help.js
@@ -30,7 +30,7 @@ module.exports = {
async main (client,Discord,message,args){
this.exec(client,{message:message,specify:args[0]})
},
- s_options:[{type:"string",name:"command",desc:"command to be specified",required:false,autocomplete:command_names}],
+ s_options:[{type:"string",name:"command",desc:"command to be specified",required:false,autocomplete:false,choices:command_names}],
async s_main(client,Discord,interaction){
this.exec(client,{message:interaction,specify:interaction.options.getString("command")})
},