cleanup
This commit is contained in:
parent
ffa5128af2
commit
771f7c6875
@ -13,7 +13,7 @@ class Restricted extends Inhibitor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
execute(message, command) {
|
execute(message, command) {
|
||||||
if(command.restricted && !this.client._options.bot.owners.includes(message.author.id)) {
|
if(command.restricted && !message.author.developer) {
|
||||||
return super._fail();
|
return super._fail();
|
||||||
}
|
}
|
||||||
return super._succeed();
|
return super._succeed();
|
||||||
|
@ -32,6 +32,10 @@ const GuildMember = Structures.extend('GuildMember', (GuildMember) => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get admin() {
|
||||||
|
return this.user.developer || this.hasPermission('ADMINISTRATOR') || this.hasPermission('MANAGE_GUILD');
|
||||||
|
}
|
||||||
|
|
||||||
get timeSinceCached() {
|
get timeSinceCached() {
|
||||||
return Date.now()-this._cached;
|
return Date.now()-this._cached;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user