mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat(Widget): Allow forum channels (#8645)
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
6
packages/discord.js/typings/index.d.ts
vendored
6
packages/discord.js/typings/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user