mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user