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 */ |   /** Adds a new Slash Command Handler */ | ||||||
|   handle( |   handle(handler: SlashCommandHandler): SlashClient { | ||||||
|     name: string, |     this.handlers.push(handler) | ||||||
|     handler: SlashCommandHandlerCallback, |  | ||||||
|     guild?: string |  | ||||||
|   ): SlashClient { |  | ||||||
|     this.handlers.push({ |  | ||||||
|       name, |  | ||||||
|       guild, |  | ||||||
|       handler |  | ||||||
|     }) |  | ||||||
|     return this |     return this | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue