fix: interaction.edit type

This commit is contained in:
Skillz4Killz
2023-05-05 23:27:40 +00:00
parent 7081e87959
commit 1d232ac34a
2 changed files with 2 additions and 2 deletions

View File

@@ -120,7 +120,7 @@ const baseInteraction: Partial<Interaction> & BaseInteraction = {
}
}
return await this.bot?.rest.editOriginalInteractionResponse(this.token!, response)
return await this.bot!.rest.editOriginalInteractionResponse(this.token!, response)
},
async defer(isPrivate) {

View File

@@ -1137,7 +1137,7 @@ export interface RestManager {
*
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#edit-original-interaction-response}
*/
editOriginalInteractionResponse: (token: string, options: InteractionCallbackData) => Promise<CamelizedDiscordMessage | undefined>
editOriginalInteractionResponse: (token: string, options: InteractionCallbackData) => Promise<CamelizedDiscordMessage>
/**
* Edits the original webhook message.
*