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, | ||||
|         embeds: options.embeds, | ||||
|         flags: options.flags, | ||||
|         allowedMentions: options.allowedMentions, | ||||
|         allowedMentions: options.allowedMentions | ||||
|       }) | ||||
|     } else | ||||
|       await this.respond( | ||||
|  | @ -258,11 +258,7 @@ export class Interaction extends SnowflakeBase { | |||
|     flags?: number | number[] | ||||
|     allowedMentions?: AllowedMentionsPayload | ||||
|   }): Promise<Interaction> { | ||||
|     const url = WEBHOOK_MESSAGE( | ||||
|       this.applicationID, | ||||
|       this.token, | ||||
|       '@original' | ||||
|     ) | ||||
|     const url = WEBHOOK_MESSAGE(this.applicationID, this.token, '@original') | ||||
|     await this.client.rest.patch(url, { | ||||
|       content: data.content ?? '', | ||||
|       embeds: data.embeds ?? [], | ||||
|  | @ -277,11 +273,7 @@ export class Interaction extends SnowflakeBase { | |||
| 
 | ||||
|   /** Delete the original Interaction Response */ | ||||
|   async deleteResponse(): Promise<Interaction> { | ||||
|     const url = WEBHOOK_MESSAGE( | ||||
|       this.applicationID, | ||||
|       this.token, | ||||
|       '@original' | ||||
|     ) | ||||
|     const url = WEBHOOK_MESSAGE(this.applicationID, this.token, '@original') | ||||
|     await this.client.rest.delete(url) | ||||
|     return this | ||||
|   } | ||||
|  | @ -357,7 +349,7 @@ export class Interaction extends SnowflakeBase { | |||
|     msg: Message | string, | ||||
|     data: { | ||||
|       content?: string | ||||
|       embeds?: Embed[] | ||||
|       embeds?: Array<Embed | EmbedPayload> | ||||
|       file?: any | ||||
|       allowed_mentions?: { | ||||
|         parse?: string | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue