DIE EMBEDS

This commit is contained in:
Daniel Odendahl Jr
2017-09-28 18:09:06 +00:00
parent 92d9f11e74
commit 70dd45af9a
11 changed files with 39 additions and 108 deletions
+3 -1
View File
@@ -4,7 +4,8 @@ class XiaoCommand extends Command {
constructor(client, info) {
super(client, info);
this.ownerOnly = info.ownerOnly;
this.ownerOnly = !!info.ownerOnly;
this.nsfw = !!info.nsfw;
this.throttling = info.throttling || {
usages: 1,
duration: 2
@@ -17,6 +18,7 @@ class XiaoCommand extends Command {
if (this.ownerOnly && !this.client.isOwner(msg.author)) {
return `The \`${this.name}\` command can only be used by the bot owner.`;
}
if (this.nsfw && !msg.channel.nsfw) return `The \`${this.name}\` command can only be used in NSFW channels.`;
return true;
}
}