aboutsummaryrefslogtreecommitdiff
path: root/commands/util/emote.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/util/emote.js')
-rw-r--r--commands/util/emote.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/commands/util/emote.js b/commands/util/emote.js
index b06bbef..c88f0b4 100644
--- a/commands/util/emote.js
+++ b/commands/util/emote.js
@@ -19,7 +19,11 @@ module.exports = {
s_options:[{type:"string",name:"emote",desc:"emote to send",required:true,autocomplete:subs},
{type:"user",name:"user",desc:"user to emote to (may be optional)",required:false,autocomplete:false}],
async s_main (client,Discord,interaction){
- this.exec(client,{message:interaction,emote:interaction.options.getString("emote"),mentioned:interaction.options.getUser("user")})
+ let emote = interaction.options.getString("emote");
+ if(Object.keys(config.avaliable_multi).includes(emote)||Object.keys(config.avaliable_solo).includes(emote))
+ this.exec(client,{message:interaction,emote:emote,mentioned:interaction.options.getUser("user")})
+ else
+ interaction.reply({content:"invalid emote!", ephemeral: true})
},
async exec(client,param){
let msg = "";