fix: typings (#7965)

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
markisha64
2022-06-05 09:36:59 +02:00
committed by GitHub
parent 10009a43ee
commit 7a1095b66b
3 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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;