From c294a0fac4dcb75883d91e61d9a70cdafb676887 Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Mon, 22 Aug 2016 18:48:31 +0100 Subject: [PATCH] Move example to right place --- src/structures/GuildChannel.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index 17e867a64..afd6dedcb 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -171,13 +171,6 @@ class GuildChannel extends Channel { * } * ``` * @typedef {(number|string)} PermissionOverwriteOptions - * @example - * // overwrite permissions for a message author - * message.channel.overwritePermissions(message.author, { - * SEND_MESSAGES: false - * }) - * .then(() => console.log('Done!')) - * .catch(console.log); */ /** @@ -185,6 +178,13 @@ class GuildChannel extends Channel { * @param {Role|UserResolvable} userOrRole the user or role to update * @param {PermissionOverwriteOptions} config the configuration for the update * @returns {Promise} + * @example + * // overwrite permissions for a message author + * message.channel.overwritePermissions(message.author, { + * SEND_MESSAGES: false + * }) + * .then(() => console.log('Done!')) + * .catch(console.log); */ overwritePermissions(userOrRole, options) { const payload = {