mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Move example to right place
This commit is contained in:
parent
85fd82818f
commit
c294a0fac4
1 changed files with 7 additions and 7 deletions
|
|
@ -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<null, Error>}
|
||||
* @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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue