mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
fix(Guild#createChannel): default to text (#2168)
update docs doc fixes real fix stuf
This commit is contained in:
@@ -884,10 +884,10 @@ class Guild {
|
||||
/**
|
||||
* Creates a new channel in the guild.
|
||||
* @param {string} name The name of the new channel
|
||||
* @param {string} type The type of the new channel, either `text` or `voice` or `category`
|
||||
* @param {string} [type='text'] The type of the new channel, either `text` or `voice` or `category`
|
||||
* @param {Array<PermissionOverwrites|ChannelCreationOverwrites>} [overwrites] Permission overwrites
|
||||
* @param {string} [reason] Reason for creating this channel
|
||||
* @returns {Promise<TextChannel|VoiceChannel>}
|
||||
* @returns {Promise<CategoryChannel|TextChannel|VoiceChannel>}
|
||||
* @example
|
||||
* // Create a new text channel
|
||||
* guild.createChannel('new-general', 'text')
|
||||
|
||||
Reference in New Issue
Block a user