Closed cainthebest closed 7 months ago
Only seems to happen for commands and events, for different reasons both down to their generics
my mistake ide was out of sync with errors, but possible fix could be to change option types to
// all command variations extend base command
commands?: string | Array<string | Command | MessageCommand | UserCommand>;
events?: string | Array<string | Event<keyof ClientEvents>>;
That would work but it isn't ideal, it should work having BaseCommand
there as they all inherit from it - Event<any>
shouldn't need the any
to work, need to take a look at why it's doing that
Describe the bug
When passing events, commands or buttons to jelly client directly you need to convert the type
For example to currently workaround
This is the same for commands and buttons
Reproduction
Import a command, button or event and pass it to jellycommands and you will be greeted with a type error.
Logs
No response
System Info