fix: interaction followup type (#2747)

* fix: readme runtime list

* Fix code style issues with ESLint

* node 18

* fix: websocket import type

* fix: body for interaction requests

* fix: perma fix for type error in ci

* fix: followupmessage option type

---------

Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
This commit is contained in:
Skillz4Killz
2023-01-28 20:48:21 -06:00
committed by GitHub
parent 523ffe3a22
commit de31b44dba
2 changed files with 3 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ export class GuildChannel extends Channel {
if (permission & BigInt(BitwisePermissionFlags.ADMINISTRATOR)) {
return new Permission(BitwisePermissionFlags.ADMINISTRATOR)
}
const channel = this instanceof ThreadChannel ? this.guild.channels.get(this.parentID) : this
const channel = this instanceof ThreadChannel && this.parentID ? this.guild.channels.get(this.parentID) : this
let overwrite = channel?.permissionOverwrites.get(this.guild.id)
if (overwrite) {
permission = (permission & ~overwrite.deny) | overwrite.allow

View File

@@ -3371,7 +3371,7 @@ export interface RestManager {
*
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-followup-message}
*/
followup: (token: string, options: InteractionResponse) => Promise<Camelize<DiscordMessage>>
followup: (token: string, options: InteractionCallbackData) => Promise<Camelize<DiscordMessage>>
/**
* Sends a response to an interaction.
*
@@ -5036,7 +5036,7 @@ export interface RestManager {
*
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-followup-message}
*/
sendFollowupMessage: (token: string, options: InteractionResponse) => Promise<Camelize<DiscordMessage>>
sendFollowupMessage: (token: string, options: InteractionCallbackData) => Promise<Camelize<DiscordMessage>>
/**
* Sends a response to an interaction.
*