diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-13 15:35:37 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-13 15:35:37 -0400 |
commit | e301238dd9a7de5c43870c438245f7a9900696b8 (patch) | |
tree | ac8d8fc2ab0d598cb1dc83d60e8fabd830d87460 /src/commands/utilities/highlight-block.ts | |
parent | 5a0046146fb2a697aead63d2af492db9f0ef9113 (diff) | |
download | tanzanite-e301238dd9a7de5c43870c438245f7a9900696b8.tar.gz tanzanite-e301238dd9a7de5c43870c438245f7a9900696b8.tar.bz2 tanzanite-e301238dd9a7de5c43870c438245f7a9900696b8.zip |
check if a user is offline when deciding whether to delay hl
Diffstat (limited to 'src/commands/utilities/highlight-block.ts')
-rw-r--r-- | src/commands/utilities/highlight-block.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/utilities/highlight-block.ts b/src/commands/utilities/highlight-block.ts index 0240da4..a450d71 100644 --- a/src/commands/utilities/highlight-block.ts +++ b/src/commands/utilities/highlight-block.ts @@ -2,7 +2,7 @@ import { AllowedMentions, BushCommand, emojis, type ArgType, type CommandMessage import assert from 'assert/strict'; import { Argument, ArgumentGeneratorReturn } from 'discord-akairo'; import { BaseChannel, GuildMember, User } from 'discord.js'; -import { BlockResult } from '../../lib/common/HighlightManager.js'; +import { HighlightBlockResult } from '../../lib/common/HighlightManager.js'; import { highlightSubcommands } from './highlight-!.js'; export default class HighlightBlockCommand extends BushCommand { @@ -51,11 +51,11 @@ export default class HighlightBlockCommand extends BushCommand { /* eslint-disable @typescript-eslint/no-base-to-string */ const content = (() => { switch (res) { - case BlockResult.ALREADY_BLOCKED: + case HighlightBlockResult.ALREADY_BLOCKED: return `${emojis.error} You have already blocked ${args.target}.`; - case BlockResult.ERROR: + case HighlightBlockResult.ERROR: return `${emojis.error} An error occurred while blocking ${args.target}.`; - case BlockResult.SUCCESS: + case HighlightBlockResult.SUCCESS: return `${emojis.success} Successfully blocked ${args.target} from triggering your highlights.`; } })(); |