fix slash module decorators
This commit is contained in:
		
							parent
							
								
									962d90aca8
								
							
						
					
					
						commit
						66031d56c2
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -3,11 +3,10 @@ import type { SlashCommandHandler } from './slashClient.ts' | |||
| export class SlashModule { | ||||
|   name: string = '' | ||||
|   commands: SlashCommandHandler[] = [] | ||||
|   _decoratedSlash?: SlashCommandHandler[] | ||||
| 
 | ||||
|   constructor() { | ||||
|     if (this._decoratedSlash !== undefined) { | ||||
|       this.commands = this._decoratedSlash | ||||
|     if ((this as any)._decoratedSlash !== undefined) { | ||||
|       ;(this as any).commands = (this as any)._decoratedSlash | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue