feat: change SlashClient#handle (BREAKING)
This commit is contained in:
		
							parent
							
								
									e0154ceec1
								
							
						
					
					
						commit
						9c46287e61
					
				
					 1 changed files with 2 additions and 10 deletions
				
			
		|  | @ -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 | ||||
|   } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue