aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
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.`;
}
})();