feat: change SlashClient#handle (BREAKING)

This commit is contained in:
DjDeveloperr 2020-12-16 18:41:01 +05:30
parent e0154ceec1
commit 9c46287e61

View file

@ -189,16 +189,8 @@ export class SlashClient {
}
/** Adds a new Slash Command Handler */
handle(
name: string,
handler: SlashCommandHandlerCallback,
guild?: string
): SlashClient {
this.handlers.push({
name,
guild,
handler
})
handle(handler: SlashCommandHandler): SlashClient {
this.handlers.push(handler)
return this
}