From 31b05eeb34f1d9e9d89718333e0ec59cd405fc51 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Wed, 24 Aug 2022 23:15:44 -0400 Subject: fix slash command permissions --- src/listeners/commands/commandBlocked.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') 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(content) - : message.reply(content); + function respond(content: string | (ReplyMessageOptions & InteractionReplyOptions)) { + return message.util ? message.util.reply(content) : message.reply(content); } } } -- cgit