From 32ad56a562911b84f8b4e2e6192e17a183908525 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Mon, 25 Feb 2019 11:09:46 +0100 Subject: [PATCH] docs(Guild): update createChannel examples to not use deprecated overload --- src/structures/Guild.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index cc7589603..c8e73db92 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -1032,16 +1032,19 @@ class Guild { * @returns {Promise} * @example * // Create a new text channel - * guild.createChannel('new-general', 'text') + * guild.createChannel('new-general', { type: 'text' }) * .then(console.log) * .catch(console.error); * @example * // Create a new category channel with permission overwrites - * guild.createChannel('new-category', 'category', [{ - * id: guild.id, - * deny: ['MANAGE_MESSAGES'], - * allow: ['SEND_MESSAGES'] - * }]) + * guild.createChannel('new-category', { + * type: 'category', + * permissionsOverwrites: [{ + * id: guild.id, + * deny: ['MANAGE_MESSAGES'], + * allow: ['SEND_MESSAGES'] + * }] + * }) * .then(console.log) * .catch(console.error); */