aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-13 15:35:37 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-13 15:35:37 -0400
commite301238dd9a7de5c43870c438245f7a9900696b8 (patch)
treeac8d8fc2ab0d598cb1dc83d60e8fabd830d87460 /src/commands
parent5a0046146fb2a697aead63d2af492db9f0ef9113 (diff)
downloadtanzanite-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')
-rw-r--r--src/commands/utilities/highlight-block.ts8
-rw-r--r--src/commands/utilities/highlight-unblock.ts8
2 files changed, 8 insertions, 8 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.`;
}
})();
diff --git a/src/commands/utilities/highlight-unblock.ts b/src/commands/utilities/highlight-unblock.ts
index 2e9dd73..702fa65 100644
--- a/src/commands/utilities/highlight-unblock.ts
+++ b/src/commands/utilities/highlight-unblock.ts
@@ -2,7 +2,7 @@ import { AllowedMentions, BushCommand, emojis, type ArgType, type CommandMessage
import assert from 'assert';
import { Argument, ArgumentGeneratorReturn } from 'discord-akairo';
import { BaseChannel, GuildMember, User } from 'discord.js';
-import { UnblockResult } from '../../lib/common/HighlightManager.js';
+import { HighlightUnblockResult } from '../../lib/common/HighlightManager.js';
import { highlightSubcommands } from './highlight-!.js';
export default class HighlightUnblockCommand extends BushCommand {
@@ -51,11 +51,11 @@ export default class HighlightUnblockCommand extends BushCommand {
/* eslint-disable @typescript-eslint/no-base-to-string */
const content = (() => {
switch (res) {
- case UnblockResult.NOT_BLOCKED:
+ case HighlightUnblockResult.NOT_BLOCKED:
return `${emojis.error} ${args.target} is not blocked so cannot be unblock.`;
- case UnblockResult.ERROR:
+ case HighlightUnblockResult.ERROR:
return `${emojis.error} An error occurred while unblocking ${args.target}.`;
- case UnblockResult.SUCCESS:
+ case HighlightUnblockResult.SUCCESS:
return `${emojis.success} Successfully allowed ${args.target} to trigger your highlights.`;
}
})();