returninteraction.editReply(`tag have been set to ${args.trigger} : ${args.response}`);
}
else{
returninteraction.editReply('Not updating.');
}
})
.catch(err=>{
console.error(err);
returninteraction.editReply('Took too long to answer. didin\'t update anything.');
});
*/
}
else{
returninteraction.editReply(`You are not the owner of this tag, if you think it is problematic ask an admin to remove it by doing ${this.client.commandHandler.prefix[0]}tag ${args.trigger} --remove`);
@ -149,121 +130,3 @@ export default {
}
},
};
/*
const{Command}=require('discord-akairo');
constTag=require('../../models').Tag;
classTagCommandextendsCommand{
constructor(){
super('tag',{
aliases:['tag'],
category:'admin',
userPermissions:['MANAGE_MESSAGES'],
args:[
{
id:'trigger',
type:'string',
},
{
id:'remove',
match:'flag',
flag:'--remove'
},
{
id:'reset',
match:'flag',
flag:'--reset'
},
{
id:'response',
type:'string',
match:'rest',
}
],
channel:'guild',
description:{
content:'Create custom autoresponse (--remove to delete a tag, --reset to delete EVERY tag on the server) [Click here to see the complete list of "tag"](https://cdn.discordapp.com/attachments/502198809355354133/561043193949585418/unknown.png) (Need "" if the trigger contains spaces)',
usage:'[trigger] [response]',
examples:['"do you know da wea" Fuck off dead meme','hello Hello [author], how are you today?','hello --remove']
returninteraction.editReply('successfully deleted the following tag: '+args.trigger);
}else{
returninteraction.editReply(`You are not the owner of this tag, if you think it is problematic ask an admin to remove it by doing ${this.client.commandHandler.prefix[0]}tag ${args.trigger} --remove`);
}
}else{
returninteraction.editReply('Did not find the specified tag, are you sure it exist?');
}
}
if(!args.trigger)returninteraction.editReply('Please provide a trigger in order to create a tag.');
if(!args.response)returninteraction.editReply('Please provide the response for that tag');
returninteraction.editReply(`tag have been set to ${args.trigger} : ${args.response}`);
}else{
returninteraction.editReply('Not updating.');
}
})
.catch(err=>{
console.error(err);
returninteraction.editReply('Took too long to answer. didin\'t update anything.');
});
}else{
returninteraction.editReply(`You are not the owner of this tag, if you think it is problematic ask an admin to remove it by doing ${this.client.commandHandler.prefix[0]}tag ${args.trigger} --remove`);