diff --git a/packages/discord.js/src/managers/GuildChannelManager.js b/packages/discord.js/src/managers/GuildChannelManager.js index 4e2465e2f..22a7eaca8 100644 --- a/packages/discord.js/src/managers/GuildChannelManager.js +++ b/packages/discord.js/src/managers/GuildChannelManager.js @@ -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 diff --git a/packages/discord.js/src/managers/GuildManager.js b/packages/discord.js/src/managers/GuildManager.js index 2feb24826..4450dfe0b 100644 --- a/packages/discord.js/src/managers/GuildManager.js +++ b/packages/discord.js/src/managers/GuildManager.js @@ -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 diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 70376ae47..bff0a7bbf 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -3763,7 +3763,7 @@ export interface ChannelData { name?: string; type?: Pick; 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 { - 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;