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