From de41e9540f9cead1708dd1ed2aab741a6a132aef Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sun, 12 Nov 2023 16:26:43 +0000 Subject: [PATCH] types: adjust `channel` --- packages/discord.js/src/util/Util.js | 2 +- packages/discord.js/typings/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/src/util/Util.js b/packages/discord.js/src/util/Util.js index 748a1f9b99c1..0f8ff0a3cee8 100644 --- a/packages/discord.js/src/util/Util.js +++ b/packages/discord.js/src/util/Util.js @@ -414,7 +414,7 @@ function parseWebhookURL(url) { * @typedef {Object} SupportingInteractionResolvedData * @property {Client} client The client * @property {Guild} [guild] A guild - * @property {BaseChannel} [channel] A channel + * @property {GuildTextBasedChannel} [channel] A channel * @private */ diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 50c419bd25f8..8265c709e702 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -6368,7 +6368,7 @@ export interface StageInstanceEditOptions { export interface SupportingInteractionResolvedData { client: Client; guild?: Guild; - channel?: Channel; + channel?: GuildTextBasedChannel; } export type SweeperKey = keyof SweeperDefinitions;