diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-24 23:15:44 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-24 23:15:44 -0400 |
commit | 31b05eeb34f1d9e9d89718333e0ec59cd405fc51 (patch) | |
tree | 8084a5a90d46179768c6e297762799bd288593fb /src/listeners/commands | |
parent | a7fd90aeee9161d10cd7ac37fe105606a23718bd (diff) | |
download | tanzanite-31b05eeb34f1d9e9d89718333e0ec59cd405fc51.tar.gz tanzanite-31b05eeb34f1d9e9d89718333e0ec59cd405fc51.tar.bz2 tanzanite-31b05eeb34f1d9e9d89718333e0ec59cd405fc51.zip |
fix slash command permissions
Diffstat (limited to 'src/listeners/commands')
-rw-r--r-- | src/listeners/commands/commandBlocked.ts | 8 |
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); } } } |