mirror of
https://github.com/danbulant/discord.js
synced 2026-06-10 02:02:40 +00:00
docs(Guild): update createChannel examples to not use deprecated overload
This commit is contained in:
parent
f61c044b26
commit
32ad56a562
1 changed files with 9 additions and 6 deletions
|
|
@ -1032,16 +1032,19 @@ class Guild {
|
||||||
* @returns {Promise<CategoryChannel|TextChannel|VoiceChannel>}
|
* @returns {Promise<CategoryChannel|TextChannel|VoiceChannel>}
|
||||||
* @example
|
* @example
|
||||||
* // Create a new text channel
|
* // Create a new text channel
|
||||||
* guild.createChannel('new-general', 'text')
|
* guild.createChannel('new-general', { type: 'text' })
|
||||||
* .then(console.log)
|
* .then(console.log)
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
* @example
|
* @example
|
||||||
* // Create a new category channel with permission overwrites
|
* // Create a new category channel with permission overwrites
|
||||||
* guild.createChannel('new-category', 'category', [{
|
* guild.createChannel('new-category', {
|
||||||
* id: guild.id,
|
* type: 'category',
|
||||||
* deny: ['MANAGE_MESSAGES'],
|
* permissionsOverwrites: [{
|
||||||
* allow: ['SEND_MESSAGES']
|
* id: guild.id,
|
||||||
* }])
|
* deny: ['MANAGE_MESSAGES'],
|
||||||
|
* allow: ['SEND_MESSAGES']
|
||||||
|
* }]
|
||||||
|
* })
|
||||||
* .then(console.log)
|
* .then(console.log)
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue