mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 16:52:16 +00: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:
parent
229eb2be2d
commit
954a1c8d1a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue