aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/listeners/commands/commandBlocked.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/listeners/commands/commandBlocked.ts b/src/listeners/commands/commandBlocked.ts
index e9d1394..1324d5f 100644
--- a/src/listeners/commands/commandBlocked.ts
+++ b/src/listeners/commands/commandBlocked.ts
@@ -9,7 +9,7 @@ import {
type CommandMessage,
type SlashMessage
} from '#lib';
-import { type Client, type InteractionReplyOptions, type MessagePayload, type ReplyMessageOptions } from 'discord.js';
+import { type Client, type InteractionReplyOptions, type ReplyMessageOptions } from 'discord.js';
export default class CommandBlockedListener extends BushListener {
public constructor() {
@@ -123,10 +123,8 @@ export default class CommandBlockedListener extends BushListener {
}
// some inhibitors do not have message.util yet
- function respond(content: string | MessagePayload | ReplyMessageOptions | InteractionReplyOptions) {
- return message.util
- ? message.util.reply(<string | MessagePayload | ReplyMessageOptions>content)
- : message.reply(<string | MessagePayload | (ReplyMessageOptions & InteractionReplyOptions)>content);
+ function respond(content: string | (ReplyMessageOptions & InteractionReplyOptions)) {
+ return message.util ? message.util.reply(content) : message.reply(content);
}
}
}