fix
This commit is contained in:
parent
a7c442d340
commit
3fe3a84928
|
@ -226,7 +226,7 @@ export class SlashClient extends HarmonyEventEmitter<SlashClientEvents> {
|
||||||
|
|
||||||
await this.emit('interaction', interaction)
|
await this.emit('interaction', interaction)
|
||||||
try {
|
try {
|
||||||
await cmd.handler(interaction)
|
await cmd.handler(interaction as SlashCommandInteraction)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
await this.emit('interactionError', e)
|
await this.emit('interactionError', e)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue