File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
packages/jellycommands/src/JellyCommands Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' jellycommands ' : patch
3+ ---
4+
5+ fix config.messages.unknownCommand types
Original file line number Diff line number Diff line change 1- import type { MessageOptions , ClientOptions } from 'discord.js' ;
1+ import type { ClientOptions , InteractionReplyOptions , MessagePayload } from 'discord.js' ;
22import { BaseCommand } from './commands/base/BaseCommand.js' ;
33import { snowflakeArray } from '../util/joi' ;
4- import { MessagePayload } from 'discord.js' ;
54import { Event } from './events/Event' ;
65import Joi from 'joi' ;
76
@@ -24,7 +23,6 @@ export const schema = Joi.object({
2423 unknownCommand : Joi . alternatives ( )
2524 . try (
2625 Joi . string ( ) ,
27- Joi . object ( ) . instance ( MessagePayload ) ,
2826 Joi . object ( ) ,
2927 )
3028 . default ( {
@@ -70,7 +68,7 @@ export interface JellyCommandsOptions {
7068 /**
7169 * This is sent when a unknown command is given
7270 */
73- unknownCommand ?: string | MessagePayload | MessageOptions ;
71+ unknownCommand ?: string | MessagePayload | InteractionReplyOptions ;
7472 } ;
7573
7674 /**
You can’t perform that action at this time.
0 commit comments