mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
@@ -99,7 +99,7 @@ class GuildChannelManager extends CachedManager {
|
||||
/**
|
||||
* Options used to create a new channel in a guild.
|
||||
* @typedef {CategoryCreateChannelOptions} GuildChannelCreateOptions
|
||||
* @property {CategoryChannelResolvable} [parent] Parent of the new channel
|
||||
* @property {?CategoryChannelResolvable} [parent] Parent of the new channel
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -201,7 +201,7 @@ class GuildChannelManager extends CachedManager {
|
||||
* @property {string} [name] The name of the channel
|
||||
* @property {ChannelType} [type] The type of the channel (only conversion between text and news is supported)
|
||||
* @property {number} [position] The position of the channel
|
||||
* @property {string} [topic] The topic of the text channel
|
||||
* @property {?string} [topic] The topic of the text channel
|
||||
* @property {boolean} [nsfw] Whether the channel is NSFW
|
||||
* @property {number} [bitrate] The bitrate of the voice channel
|
||||
* @property {number} [userLimit] The user limit of the voice channel
|
||||
|
||||
@@ -84,7 +84,7 @@ class GuildManager extends CachedManager {
|
||||
* @property {Snowflake|number} [parentId] The parent id for this channel
|
||||
* @property {ChannelType|number} [type] The type of the channel
|
||||
* @property {string} name The name of the channel
|
||||
* @property {string} [topic] The topic of the text channel
|
||||
* @property {?string} [topic] The topic of the text channel
|
||||
* @property {boolean} [nsfw] Whether the channel is NSFW
|
||||
* @property {number} [bitrate] The bitrate of the voice channel
|
||||
* @property {number} [userLimit] The user limit of the channel
|
||||
|
||||
6
packages/discord.js/typings/index.d.ts
vendored
6
packages/discord.js/typings/index.d.ts
vendored
@@ -3763,7 +3763,7 @@ export interface ChannelData {
|
||||
name?: string;
|
||||
type?: Pick<typeof ChannelType, 'GuildText' | 'GuildNews'>;
|
||||
position?: number;
|
||||
topic?: string;
|
||||
topic?: string | null;
|
||||
nsfw?: boolean;
|
||||
bitrate?: number;
|
||||
userLimit?: number;
|
||||
@@ -4380,7 +4380,7 @@ export type GuildBanResolvable = GuildBan | UserResolvable;
|
||||
export type GuildChannelResolvable = Snowflake | GuildBasedChannel;
|
||||
|
||||
export interface GuildChannelCreateOptions extends Omit<CategoryCreateChannelOptions, 'type'> {
|
||||
parent?: CategoryChannelResolvable;
|
||||
parent?: CategoryChannelResolvable | null;
|
||||
type?: Exclude<
|
||||
ChannelType,
|
||||
| ChannelType.DM
|
||||
@@ -4870,7 +4870,7 @@ export interface PartialChannelData {
|
||||
| ChannelType.GuildStageVoice
|
||||
>;
|
||||
name: string;
|
||||
topic?: string;
|
||||
topic?: string | null;
|
||||
nsfw?: boolean;
|
||||
bitrate?: number;
|
||||
userLimit?: number;
|
||||
|
||||
Reference in New Issue
Block a user