required changes
This commit is contained in:
		
							parent
							
								
									82431168d3
								
							
						
					
					
						commit
						8bf2c1e99d
					
				
					 1 changed files with 14 additions and 22 deletions
				
			
		|  | @ -239,7 +239,7 @@ export class Interaction extends SnowflakeBase { | ||||||
|         content: options.content, |         content: options.content, | ||||||
|         embeds: options.embeds, |         embeds: options.embeds, | ||||||
|         flags: options.flags, |         flags: options.flags, | ||||||
|         allowedMentions: options.allowedMentions, |         allowedMentions: options.allowedMentions | ||||||
|       }) |       }) | ||||||
|     } else |     } else | ||||||
|       await this.respond( |       await this.respond( | ||||||
|  | @ -258,11 +258,7 @@ export class Interaction extends SnowflakeBase { | ||||||
|     flags?: number | number[] |     flags?: number | number[] | ||||||
|     allowedMentions?: AllowedMentionsPayload |     allowedMentions?: AllowedMentionsPayload | ||||||
|   }): Promise<Interaction> { |   }): Promise<Interaction> { | ||||||
|     const url = WEBHOOK_MESSAGE( |     const url = WEBHOOK_MESSAGE(this.applicationID, this.token, '@original') | ||||||
|       this.applicationID, |  | ||||||
|       this.token, |  | ||||||
|       '@original' |  | ||||||
|     ) |  | ||||||
|     await this.client.rest.patch(url, { |     await this.client.rest.patch(url, { | ||||||
|       content: data.content ?? '', |       content: data.content ?? '', | ||||||
|       embeds: data.embeds ?? [], |       embeds: data.embeds ?? [], | ||||||
|  | @ -277,11 +273,7 @@ export class Interaction extends SnowflakeBase { | ||||||
| 
 | 
 | ||||||
|   /** Delete the original Interaction Response */ |   /** Delete the original Interaction Response */ | ||||||
|   async deleteResponse(): Promise<Interaction> { |   async deleteResponse(): Promise<Interaction> { | ||||||
|     const url = WEBHOOK_MESSAGE( |     const url = WEBHOOK_MESSAGE(this.applicationID, this.token, '@original') | ||||||
|       this.applicationID, |  | ||||||
|       this.token, |  | ||||||
|       '@original' |  | ||||||
|     ) |  | ||||||
|     await this.client.rest.delete(url) |     await this.client.rest.delete(url) | ||||||
|     return this |     return this | ||||||
|   } |   } | ||||||
|  | @ -357,7 +349,7 @@ export class Interaction extends SnowflakeBase { | ||||||
|     msg: Message | string, |     msg: Message | string, | ||||||
|     data: { |     data: { | ||||||
|       content?: string |       content?: string | ||||||
|       embeds?: Embed[] |       embeds?: Array<Embed | EmbedPayload> | ||||||
|       file?: any |       file?: any | ||||||
|       allowed_mentions?: { |       allowed_mentions?: { | ||||||
|         parse?: string |         parse?: string | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue