make it say that it only work with bot
This commit is contained in:
parent
363fc03b84
commit
df0d295c08
1 changed files with 10 additions and 6 deletions
|
@ -7,14 +7,14 @@ class InviteCommand extends Command {
|
||||||
aliases: ['invite'],
|
aliases: ['invite'],
|
||||||
category: 'utility',
|
category: 'utility',
|
||||||
args: [
|
args: [
|
||||||
{
|
|
||||||
id: 'member',
|
|
||||||
type: 'user'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: 'here',
|
id: 'here',
|
||||||
match: 'flag',
|
match: 'flag',
|
||||||
flag: '--here'
|
flag: '--here'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'member',
|
||||||
|
type: 'user'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
description: {
|
description: {
|
||||||
|
@ -27,8 +27,12 @@ class InviteCommand extends Command {
|
||||||
|
|
||||||
async exec(message, args) {
|
async exec(message, args) {
|
||||||
let botid;
|
let botid;
|
||||||
if (args.member.bot) {
|
if (args.member) {
|
||||||
botid = args.member.id;
|
if (args.member.bot) {
|
||||||
|
botid = args.member.id;
|
||||||
|
} else {
|
||||||
|
return message.channel.send('Sorry, the user you mentioned is not a bot!');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
botid = this.client.user.id;
|
botid = this.client.user.id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue