x
This commit is contained in:
		
							parent
							
								
									9d88c5d113
								
							
						
					
					
						commit
						67d81c1bf0
					
				
					 2 changed files with 10 additions and 3 deletions
				
			
		|  | @ -3,11 +3,10 @@ import type { SlashCommandHandler } from './slashClient.ts' | ||||||
| export class SlashModule { | export class SlashModule { | ||||||
|   name: string = '' |   name: string = '' | ||||||
|   commands: SlashCommandHandler[] = [] |   commands: SlashCommandHandler[] = [] | ||||||
|   _decoratedSlash?: SlashCommandHandler[] |  | ||||||
| 
 | 
 | ||||||
|   constructor() { |   constructor() { | ||||||
|     if (this._decoratedSlash !== undefined) { |     if ((this as any)._decoratedSlash !== undefined) { | ||||||
|       this.commands = this._decoratedSlash |       ;(this as any).commands = (this as any)._decoratedSlash | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -11,6 +11,12 @@ export enum ButtonStyle { | ||||||
|   Link = 5 |   Link = 5 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | export interface MessageComponentEmoji { | ||||||
|  |   id?: string | ||||||
|  |   name?: string | ||||||
|  |   animated?: boolean | ||||||
|  | } | ||||||
|  | 
 | ||||||
| export interface MessageComponentPayload { | export interface MessageComponentPayload { | ||||||
|   type: MessageComponentType |   type: MessageComponentType | ||||||
|   components?: MessageComponentPayload[] |   components?: MessageComponentPayload[] | ||||||
|  | @ -18,6 +24,7 @@ export interface MessageComponentPayload { | ||||||
|   style?: ButtonStyle |   style?: ButtonStyle | ||||||
|   url?: string |   url?: string | ||||||
|   custom_id?: string |   custom_id?: string | ||||||
|  |   emoji?: MessageComponentEmoji | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export interface MessageComponentData { | export interface MessageComponentData { | ||||||
|  | @ -27,6 +34,7 @@ export interface MessageComponentData { | ||||||
|   style?: ButtonStyle |   style?: ButtonStyle | ||||||
|   url?: string |   url?: string | ||||||
|   customID?: string |   customID?: string | ||||||
|  |   emoji?: MessageComponentEmoji | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export interface InteractionMessageComponentData { | export interface InteractionMessageComponentData { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue