diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-19 17:42:29 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-19 17:42:29 -0400 |
commit | 0fc87a141609fe7d6a80931b73f59c872b0bd44f (patch) | |
tree | 715d65c8801de4376845c01edfe01abedaabbc91 /src/commands/info | |
parent | b023e057083f002418d2a685dbfb17faa624b6b1 (diff) | |
download | tanzanite-0fc87a141609fe7d6a80931b73f59c872b0bd44f.tar.gz tanzanite-0fc87a141609fe7d6a80931b73f59c872b0bd44f.tar.bz2 tanzanite-0fc87a141609fe7d6a80931b73f59c872b0bd44f.zip |
change some stuff
Diffstat (limited to 'src/commands/info')
-rw-r--r-- | src/commands/info/help.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts index e485d24..1786f8c 100644 --- a/src/commands/info/help.ts +++ b/src/commands/info/help.ts @@ -48,7 +48,7 @@ export default class HelpCommand extends BushCommand { ): Promise<unknown> { const prefix = this.client.config.isDevelopment ? 'dev ' : message.util.parsed.prefix; const components = - !this.client.config.isDevelopment || !this.client.guilds.cache.some((guild) => guild.ownerId === message.author.id) + !this.client.config.isDevelopment && !this.client.guilds.cache.some((guild) => guild.ownerId === message.author.id) ? [ new MessageActionRow().addComponents( new MessageButton({ @@ -60,6 +60,10 @@ export default class HelpCommand extends BushCommand { ] : undefined; + this.client.console.debug(!this.client.config.isDevelopment); + this.client.console.debug(!this.client.guilds.cache.some((guild) => guild.ownerId === message.author.id)); + this.client.console.debug(components); + const isOwner = this.client.isOwner(message.author); const isSuperUser = this.client.isSuperUser(message.author); const command = args.command |