mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 15:57:50 +02:00
DIE EMBEDS
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user