mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +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>}
|
||||
* @example
|
||||
* // 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}`))
|
||||
* .catch(console.error);
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue