@ -26,18 +26,14 @@ class InviteCommand extends Command {
}
}
asyncexec(message,args){
asyncexec(message,args){
letbotid;
if(args.member){
if(args.member){
if(args.member.bot){
if(args.member.bot){
botid=args.member.id;
returnmessage.channel.send(`You can add the bot you mentioned with this link: https://discordapp.com/oauth2/authorize?client_id=${args.member.id}&scope=bot&permissions=0`);
}else{
}else{
returnmessage.channel.send('Sorry, the user you mentioned is not a bot!');
returnmessage.channel.send('Sorry, the user you mentioned is not a bot!');
}
}
}else{
}else{
botid=this.client.user.id;
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 :)`;
}
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 :)`;
if(args.here){
if(args.here){
message.channel.send(invMessage);
message.channel.send(invMessage);
}else{
}else{
@ -45,6 +41,7 @@ class InviteCommand extends Command {