mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +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
|
* Widget channel for this guild
|
||||||
* @type {?(TextChannel|NewsChannel|VoiceChannel|StageChannel)}
|
* @type {?(TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel)}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get widgetChannel() {
|
get widgetChannel() {
|
||||||
@@ -660,14 +660,15 @@ class Guild extends AnonymousGuild {
|
|||||||
* Data for the Guild Widget Settings object
|
* Data for the Guild Widget Settings object
|
||||||
* @typedef {Object} GuildWidgetSettings
|
* @typedef {Object} GuildWidgetSettings
|
||||||
* @property {boolean} enabled Whether the widget is enabled
|
* @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
|
* The Guild Widget Settings object
|
||||||
* @typedef {Object} GuildWidgetSettingsData
|
* @typedef {Object} GuildWidgetSettingsData
|
||||||
* @property {boolean} enabled Whether the widget is enabled
|
* @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 vanityURLUses: number | null;
|
||||||
public get voiceAdapterCreator(): InternalDiscordGatewayAdapterCreator;
|
public get voiceAdapterCreator(): InternalDiscordGatewayAdapterCreator;
|
||||||
public voiceStates: VoiceStateManager;
|
public voiceStates: VoiceStateManager;
|
||||||
public get widgetChannel(): TextChannel | NewsChannel | VoiceBasedChannel | null;
|
public get widgetChannel(): TextChannel | NewsChannel | VoiceBasedChannel | ForumChannel | null;
|
||||||
public widgetChannelId: Snowflake | null;
|
public widgetChannelId: Snowflake | null;
|
||||||
public widgetEnabled: boolean | null;
|
public widgetEnabled: boolean | null;
|
||||||
public get maximumBitrate(): number;
|
public get maximumBitrate(): number;
|
||||||
@@ -4926,7 +4926,7 @@ export interface GuildCreateOptions {
|
|||||||
|
|
||||||
export interface GuildWidgetSettings {
|
export interface GuildWidgetSettings {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
channel: TextChannel | NewsChannel | VoiceBasedChannel | null;
|
channel: TextChannel | NewsChannel | VoiceBasedChannel | ForumChannel | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GuildEditData {
|
export interface GuildEditData {
|
||||||
@@ -5004,7 +5004,7 @@ export interface GuildPruneMembersOptions {
|
|||||||
|
|
||||||
export interface GuildWidgetSettingsData {
|
export interface GuildWidgetSettingsData {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
channel: TextChannel | NewsChannel | VoiceBasedChannel | Snowflake | null;
|
channel: TextChannel | NewsChannel | VoiceBasedChannel | ForumChannel | Snowflake | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GuildSearchMembersOptions {
|
export interface GuildSearchMembersOptions {
|
||||||
|
|||||||
Reference in New Issue
Block a user