@ -7,6 +7,10 @@ class InviteCommand extends Command {
aliases:['invite'],
category:'utility',
args:[
{
id:'member',
type:'user'
},
{
id:'here',
match:'flag',
@ -22,7 +26,14 @@ class InviteCommand extends Command {
}
asyncexec(message,args){
letinvMessage=`You can add me from here: https://discordapp.com/oauth2/authorize?client_id=${this.client.user.id}&scope=bot&permissions=0\nYou can also join my support server over here: ${supportServer} come and say hi :)`;
letbotid;
if(args.member.bot){
botid=args.member.id;
}else{
botid=this.client.user.id;
}
letinvMessage=`You can add me from here: https://discordapp.com/oauth2/authorize?client_id=${botid}&scope=bot&permissions=0\nYou can also join my support server over here: ${supportServer} come and say hi :)`;