diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-17 12:31:09 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-17 12:31:09 -0400 |
commit | d40527d0a2d9f209905750258f71bedff1cdf089 (patch) | |
tree | e017fd844c2135bfc85228d00ef2617d24ce0a3f /src/commands/skyblock-reborn | |
parent | d431ad00754f3f250103deedea495b9bcee73fc0 (diff) | |
download | tanzanite-d40527d0a2d9f209905750258f71bedff1cdf089.tar.gz tanzanite-d40527d0a2d9f209905750258f71bedff1cdf089.tar.bz2 tanzanite-d40527d0a2d9f209905750258f71bedff1cdf089.zip |
turned on ts strict option
Diffstat (limited to 'src/commands/skyblock-reborn')
-rw-r--r-- | src/commands/skyblock-reborn/chooseColor.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/skyblock-reborn/chooseColor.ts b/src/commands/skyblock-reborn/chooseColor.ts index 4be2243..1d86899 100644 --- a/src/commands/skyblock-reborn/chooseColor.ts +++ b/src/commands/skyblock-reborn/chooseColor.ts @@ -122,7 +122,7 @@ export default class ChooseColorCommand extends BushCommand { message: BushMessage | BushSlashMessage, args: { color: Role | RoleResolvable } ): Promise<unknown> { - if (message.guild.id != client.consts.mappings.guilds.sbr) { + if (message.guild!.id != client.consts.mappings.guilds.sbr) { return await message.util.reply(`${util.emojis.error} This command can only be run in Skyblock: Reborn.`); } const allowedRoles: Snowflake[] = [ @@ -134,7 +134,7 @@ export default class ChooseColorCommand extends BushCommand { !( allowedRoles.some((role) => (message.member as BushGuildMember).roles.cache.has(role)) || (message.member as BushGuildMember).permissions.has('ADMINISTRATOR') || - message.guild.ownerId === message.author.id + message.guild!.ownerId === message.author.id ) ) { const allowed = util.oxford( |