From 727dc094d52a5b169e46917b64308ab87a7144b1 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Mon, 14 Aug 2023 18:19:47 +0100 Subject: [PATCH] types(GuildInvitableChannelResolvable): Allow forum channels (#9775) types(GuildInvitableChannelResolvable): allow forum channels Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/discord.js/src/managers/GuildInviteManager.js | 3 ++- packages/discord.js/typings/index.d.ts | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/src/managers/GuildInviteManager.js b/packages/discord.js/src/managers/GuildInviteManager.js index 12a384aebd30..f1fe3eb2fa94 100644 --- a/packages/discord.js/src/managers/GuildInviteManager.js +++ b/packages/discord.js/src/managers/GuildInviteManager.js @@ -45,8 +45,9 @@ class GuildInviteManager extends CachedManager { * * VoiceChannel * * NewsChannel * * StageChannel + * * ForumChannel * * Snowflake - * @typedef {TextChannel|VoiceChannel|NewsChannel|StageChannel|Snowflake} + * @typedef {TextChannel|VoiceChannel|NewsChannel|StageChannel|ForumChannel|Snowflake} * GuildInvitableChannelResolvable */ diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 169aa439c25a..78503e17ebe3 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -5797,7 +5797,13 @@ export interface InviteGenerationOptions { scopes: OAuth2Scopes[]; } -export type GuildInvitableChannelResolvable = TextChannel | VoiceChannel | NewsChannel | StageChannel | Snowflake; +export type GuildInvitableChannelResolvable = + | TextChannel + | VoiceChannel + | NewsChannel + | StageChannel + | ForumChannel + | Snowflake; export interface InviteCreateOptions { temporary?: boolean;