mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
docs(GuildChannelManager): fix type options in description (#5440)
This commit is contained in:
@@ -62,7 +62,8 @@ class GuildChannelManager extends BaseManager {
|
|||||||
* Creates a new channel in the guild.
|
* Creates a new channel in the guild.
|
||||||
* @param {string} name The name of the new channel
|
* @param {string} name The name of the new channel
|
||||||
* @param {Object} [options] Options
|
* @param {Object} [options] Options
|
||||||
* @param {string} [options.type='text'] The type of the new channel, either `text`, `voice`, or `category`
|
* @param {string} [options.type='text'] The type of the new channel, either `text`, `voice`, `category`, `news`,
|
||||||
|
* or `store`
|
||||||
* @param {string} [options.topic] The topic for the new channel
|
* @param {string} [options.topic] The topic for the new channel
|
||||||
* @param {boolean} [options.nsfw] Whether the new channel is nsfw
|
* @param {boolean} [options.nsfw] Whether the new channel is nsfw
|
||||||
* @param {number} [options.bitrate] Bitrate of the new channel in bits (only voice)
|
* @param {number} [options.bitrate] Bitrate of the new channel in bits (only voice)
|
||||||
|
|||||||
4
typings/index.d.ts
vendored
4
typings/index.d.ts
vendored
@@ -1971,10 +1971,12 @@ declare module 'discord.js' {
|
|||||||
public create(name: string, options: GuildCreateChannelOptions & { type: 'voice' }): Promise<VoiceChannel>;
|
public create(name: string, options: GuildCreateChannelOptions & { type: 'voice' }): Promise<VoiceChannel>;
|
||||||
public create(name: string, options: GuildCreateChannelOptions & { type: 'category' }): Promise<CategoryChannel>;
|
public create(name: string, options: GuildCreateChannelOptions & { type: 'category' }): Promise<CategoryChannel>;
|
||||||
public create(name: string, options?: GuildCreateChannelOptions & { type?: 'text' }): Promise<TextChannel>;
|
public create(name: string, options?: GuildCreateChannelOptions & { type?: 'text' }): Promise<TextChannel>;
|
||||||
|
public create(name: string, options: GuildCreateChannelOptions & { type: 'news' }): Promise<NewsChannel>;
|
||||||
|
public create(name: string, options: GuildCreateChannelOptions & { type: 'store' }): Promise<StoreChannel>;
|
||||||
public create(
|
public create(
|
||||||
name: string,
|
name: string,
|
||||||
options: GuildCreateChannelOptions,
|
options: GuildCreateChannelOptions,
|
||||||
): Promise<TextChannel | VoiceChannel | CategoryChannel>;
|
): Promise<TextChannel | VoiceChannel | CategoryChannel | NewsChannel | StoreChannel>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class GuildEmojiManager extends BaseGuildEmojiManager {
|
export class GuildEmojiManager extends BaseGuildEmojiManager {
|
||||||
|
|||||||
Reference in New Issue
Block a user