mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
updating channelCreate example to reflect recent changes (#2194)
* updating channelCreate example to reflect recent changes Type is now part of the options object, so the example should reflect that. * changing type to reason per comment
This commit is contained in:
@@ -921,7 +921,7 @@ class Guild extends Base {
|
|||||||
* @returns {Promise<GuildChannel>}
|
* @returns {Promise<GuildChannel>}
|
||||||
* @example
|
* @example
|
||||||
* // Create a new text channel
|
* // Create a new text channel
|
||||||
* guild.createChannel('new-general', 'text')
|
* guild.createChannel('new-general', { reason: 'My reason here.' })
|
||||||
* .then(channel => console.log(`Created new channel ${channel}`))
|
* .then(channel => console.log(`Created new channel ${channel}`))
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user