mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
Docs cleanup
This commit is contained in:
@@ -69,7 +69,7 @@ class Permissions {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets an object mapping permission name (like `READ_MESSAGES`) to a {@link boolean} indicating whether the
|
||||
* Gets an object mapping permission name (like `VIEW_CHANNEL`) to a {@link boolean} indicating whether the
|
||||
* permission is available.
|
||||
* @param {boolean} [checkAdmin=true] Whether to allow the administrator permission to override
|
||||
* @returns {Object}
|
||||
@@ -82,8 +82,8 @@ class Permissions {
|
||||
|
||||
/**
|
||||
* Data that can be resolved to give a permission number. This can be:
|
||||
* - A string (see {@link Permissions.FLAGS})
|
||||
* - A permission number
|
||||
* * A string (see {@link Permissions.FLAGS})
|
||||
* * A permission number
|
||||
* @typedef {string|number} PermissionResolvable
|
||||
*/
|
||||
|
||||
@@ -102,34 +102,34 @@ class Permissions {
|
||||
|
||||
/**
|
||||
* Numeric permission flags. All available properties:
|
||||
* - `ADMINISTRATOR` (implicitly has *all* permissions, and bypasses all channel overwrites)
|
||||
* - `CREATE_INSTANT_INVITE` (create invitations to the guild)
|
||||
* - `KICK_MEMBERS`
|
||||
* - `BAN_MEMBERS`
|
||||
* - `MANAGE_CHANNELS` (edit and reorder channels)
|
||||
* - `MANAGE_GUILD` (edit the guild information, region, etc.)
|
||||
* - `ADD_REACTIONS` (add new reactions to messages)
|
||||
* - `VIEW_AUDIT_LOG`
|
||||
* - `VIEW_CHANNELS`
|
||||
* - `SEND_MESSAGES`
|
||||
* - `SEND_TTS_MESSAGES`
|
||||
* - `MANAGE_MESSAGES` (delete messages and reactions)
|
||||
* - `EMBED_LINKS` (links posted will have a preview embedded)
|
||||
* - `ATTACH_FILES`
|
||||
* - `READ_MESSAGE_HISTORY` (view messages that were posted prior to opening Discord)
|
||||
* - `MENTION_EVERYONE`
|
||||
* - `USE_EXTERNAL_EMOJIS` (use emojis from different guilds)
|
||||
* - `CONNECT` (connect to a voice channel)
|
||||
* - `SPEAK` (speak in a voice channel)
|
||||
* - `MUTE_MEMBERS` (mute members across all voice channels)
|
||||
* - `DEAFEN_MEMBERS` (deafen members across all voice channels)
|
||||
* - `MOVE_MEMBERS` (move members between voice channels)
|
||||
* - `USE_VAD` (use voice activity detection)
|
||||
* - `CHANGE_NICKNAME`
|
||||
* - `MANAGE_NICKNAMES` (change other members' nicknames)
|
||||
* - `MANAGE_ROLES`
|
||||
* - `MANAGE_WEBHOOKS`
|
||||
* - `MANAGE_EMOJIS`
|
||||
* * `ADMINISTRATOR` (implicitly has *all* permissions, and bypasses all channel overwrites)
|
||||
* * `CREATE_INSTANT_INVITE` (create invitations to the guild)
|
||||
* * `KICK_MEMBERS`
|
||||
* * `BAN_MEMBERS`
|
||||
* * `MANAGE_CHANNELS` (edit and reorder channels)
|
||||
* * `MANAGE_GUILD` (edit the guild information, region, etc.)
|
||||
* * `ADD_REACTIONS` (add new reactions to messages)
|
||||
* * `VIEW_AUDIT_LOG`
|
||||
* * `VIEW_CHANNEL`
|
||||
* * `SEND_MESSAGES`
|
||||
* * `SEND_TTS_MESSAGES`
|
||||
* * `MANAGE_MESSAGES` (delete messages and reactions)
|
||||
* * `EMBED_LINKS` (links posted will have a preview embedded)
|
||||
* * `ATTACH_FILES`
|
||||
* * `READ_MESSAGE_HISTORY` (view messages that were posted prior to opening Discord)
|
||||
* * `MENTION_EVERYONE`
|
||||
* * `USE_EXTERNAL_EMOJIS` (use emojis from different guilds)
|
||||
* * `CONNECT` (connect to a voice channel)
|
||||
* * `SPEAK` (speak in a voice channel)
|
||||
* * `MUTE_MEMBERS` (mute members across all voice channels)
|
||||
* * `DEAFEN_MEMBERS` (deafen members across all voice channels)
|
||||
* * `MOVE_MEMBERS` (move members between voice channels)
|
||||
* * `USE_VAD` (use voice activity detection)
|
||||
* * `CHANGE_NICKNAME`
|
||||
* * `MANAGE_NICKNAMES` (change other members' nicknames)
|
||||
* * `MANAGE_ROLES`
|
||||
* * `MANAGE_WEBHOOKS`
|
||||
* * `MANAGE_EMOJIS`
|
||||
* @type {Object}
|
||||
* @see {@link https://discordapp.com/developers/docs/topics/permissions}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user