feat(WelcomeChannel): Add forum channel as a type (#8643)

This commit is contained in:
Jiralite
2022-09-21 01:57:18 +01:00
committed by GitHub
parent eb98372dcd
commit 6f1f465a77
3 changed files with 4 additions and 4 deletions

View File

@@ -831,7 +831,7 @@ class Guild extends AnonymousGuild {
* Welcome channel data * Welcome channel data
* @typedef {Object} WelcomeChannelData * @typedef {Object} WelcomeChannelData
* @property {string} description The description to show for this welcome channel * @property {string} description The description to show for this welcome channel
* @property {GuildTextChannelResolvable} channel The channel to link for this welcome channel * @property {TextChannel|NewsChannel|ForumChannel|Snowflake} channel The channel to link for this welcome channel
* @property {EmojiIdentifierResolvable} [emoji] The emoji to display for this welcome channel * @property {EmojiIdentifierResolvable} [emoji] The emoji to display for this welcome channel
*/ */

View File

@@ -42,7 +42,7 @@ class WelcomeChannel extends Base {
/** /**
* The channel of this welcome channel * The channel of this welcome channel
* @type {?(TextChannel|NewsChannel)} * @type {?(TextChannel|NewsChannel|ForumChannel)}
*/ */
get channel() { get channel() {
return this.client.channels.resolve(this.channelId); return this.client.channels.resolve(this.channelId);

View File

@@ -3050,7 +3050,7 @@ export class WelcomeChannel extends Base {
public channelId: Snowflake; public channelId: Snowflake;
public guild: Guild | InviteGuild; public guild: Guild | InviteGuild;
public description: string; public description: string;
public get channel(): TextChannel | NewsChannel | null; public get channel(): TextChannel | NewsChannel | ForumChannel | null;
public get emoji(): GuildEmoji | Emoji; public get emoji(): GuildEmoji | Emoji;
} }
@@ -5738,7 +5738,7 @@ export interface WidgetChannel {
export interface WelcomeChannelData { export interface WelcomeChannelData {
description: string; description: string;
channel: GuildTextChannelResolvable; channel: TextChannel | NewsChannel | ForumChannel | Snowflake;
emoji?: EmojiIdentifierResolvable; emoji?: EmojiIdentifierResolvable;
} }