diff --git a/packages/discord.js/src/structures/Guild.js b/packages/discord.js/src/structures/Guild.js index 29ff74e97..c1a1209f4 100644 --- a/packages/discord.js/src/structures/Guild.js +++ b/packages/discord.js/src/structures/Guild.js @@ -493,7 +493,7 @@ class Guild extends AnonymousGuild { /** * Widget channel for this guild - * @type {?(TextChannel|NewsChannel|VoiceChannel|StageChannel)} + * @type {?(TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel)} * @readonly */ get widgetChannel() { @@ -660,14 +660,15 @@ class Guild extends AnonymousGuild { * Data for the Guild Widget Settings object * @typedef {Object} GuildWidgetSettings * @property {boolean} enabled Whether the widget is enabled - * @property {?(TextChannel|NewsChannel|VoiceChannel|StageChannel)} channel The widget invite channel + * @property {?(TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel)} channel The widget invite channel */ /** * The Guild Widget Settings object * @typedef {Object} GuildWidgetSettingsData * @property {boolean} enabled Whether the widget is enabled - * @property {?(TextChannel|NewsChannel|VoiceChannel|StageChannel|Snowflake)} channel The widget invite channel + * @property {?(TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel|Snowflake)} channel + * The widget invite channel */ /** diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 796ce250a..fa949af30 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1122,7 +1122,7 @@ export class Guild extends AnonymousGuild { public vanityURLUses: number | null; public get voiceAdapterCreator(): InternalDiscordGatewayAdapterCreator; public voiceStates: VoiceStateManager; - public get widgetChannel(): TextChannel | NewsChannel | VoiceBasedChannel | null; + public get widgetChannel(): TextChannel | NewsChannel | VoiceBasedChannel | ForumChannel | null; public widgetChannelId: Snowflake | null; public widgetEnabled: boolean | null; public get maximumBitrate(): number; @@ -4926,7 +4926,7 @@ export interface GuildCreateOptions { export interface GuildWidgetSettings { enabled: boolean; - channel: TextChannel | NewsChannel | VoiceBasedChannel | null; + channel: TextChannel | NewsChannel | VoiceBasedChannel | ForumChannel | null; } export interface GuildEditData { @@ -5004,7 +5004,7 @@ export interface GuildPruneMembersOptions { export interface GuildWidgetSettingsData { enabled: boolean; - channel: TextChannel | NewsChannel | VoiceBasedChannel | Snowflake | null; + channel: TextChannel | NewsChannel | VoiceBasedChannel | ForumChannel | Snowflake | null; } export interface GuildSearchMembersOptions {