diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-17 14:11:37 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-17 14:11:37 -0400 |
commit | da70ed6f4ad82c58adf7dc6120aa8b6b255238e9 (patch) | |
tree | a1d80d6d89ae249893c300234d034934a55ea0b4 /src/commands/info | |
parent | d1724227abfb8f0fcd9e573f7e9772cf0be8257a (diff) | |
download | tanzanite-da70ed6f4ad82c58adf7dc6120aa8b6b255238e9.tar.gz tanzanite-da70ed6f4ad82c58adf7dc6120aa8b6b255238e9.tar.bz2 tanzanite-da70ed6f4ad82c58adf7dc6120aa8b6b255238e9.zip |
rewrote config for absolutly no reason :troll:
Diffstat (limited to 'src/commands/info')
-rw-r--r-- | src/commands/info/help.ts | 4 | ||||
-rw-r--r-- | src/commands/info/invite.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts index a0b03a0..e485d24 100644 --- a/src/commands/info/help.ts +++ b/src/commands/info/help.ts @@ -46,9 +46,9 @@ export default class HelpCommand extends BushCommand { message: BushMessage | BushSlashMessage, args: { command: BushCommand | string; showHidden?: boolean } ): Promise<unknown> { - const prefix = this.client.config.dev ? 'dev ' : message.util.parsed.prefix; + const prefix = this.client.config.isDevelopment ? 'dev ' : message.util.parsed.prefix; const components = - !this.client.config.dev || !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({ diff --git a/src/commands/info/invite.ts b/src/commands/info/invite.ts index f53e930..923c54a 100644 --- a/src/commands/info/invite.ts +++ b/src/commands/info/invite.ts @@ -19,7 +19,7 @@ export default class InviteCommand extends BushCommand { } public async exec(message: BushMessage | BushSlashMessage): Promise<unknown> { - if (this.client.config.dev) + if (this.client.config.isDevelopment) return await message.util.reply(`${this.client.util.emojis.error} The dev bot cannot be invited.`); const ButtonRow = new MessageActionRow().addComponents( new MessageButton({ |