mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
Move example to right place
This commit is contained in:
@@ -171,13 +171,6 @@ class GuildChannel extends Channel {
|
|||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
* @typedef {(number|string)} PermissionOverwriteOptions
|
* @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 {Role|UserResolvable} userOrRole the user or role to update
|
||||||
* @param {PermissionOverwriteOptions} config the configuration for the update
|
* @param {PermissionOverwriteOptions} config the configuration for the update
|
||||||
* @returns {Promise<null, Error>}
|
* @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) {
|
overwritePermissions(userOrRole, options) {
|
||||||
const payload = {
|
const payload = {
|
||||||
|
|||||||
Reference in New Issue
Block a user