From 954a1c8d1afdf50f068ca9ca9320d265f6cb0633 Mon Sep 17 00:00:00 2001 From: Darqam Date: Wed, 3 Jan 2018 18:00:39 -0600 Subject: [PATCH] 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 --- src/structures/Guild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 5f9674585..b11548b56 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -921,7 +921,7 @@ class Guild extends Base { * @returns {Promise} * @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); */