This commit is contained in:
Erik 2020-06-20 00:02:59 +03:00
parent ffa5128af2
commit 771f7c6875
2 changed files with 5 additions and 1 deletions

View File

@ -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();

View File

@ -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;
} }