mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
feat(types): Add PIN_MESSAGES permission (#4390)
This commit is contained in:
@@ -2858,7 +2858,7 @@ export interface RestManager {
|
||||
* @param {string} [reason] - An optional reason for the action, to be included in the audit log.
|
||||
*
|
||||
* @remarks
|
||||
* Requires the `MANAGE_MESSAGES` permission.
|
||||
* Requires the `PIN_MESSAGES` permission.
|
||||
*
|
||||
* Fires a _Channel Pins Update_ event.
|
||||
*
|
||||
@@ -2922,7 +2922,7 @@ export interface RestManager {
|
||||
* @param {string} [reason] - An optional reason for the action, to be included in the audit log.
|
||||
*
|
||||
* @remarks
|
||||
* Requires the `MANAGE_MESSAGES` permission.
|
||||
* Requires the `PIN_MESSAGES` permission.
|
||||
*
|
||||
* Fires a _Channel Pins Update_ event.
|
||||
*
|
||||
|
||||
@@ -100,6 +100,8 @@ export const BitwisePermissionFlags = {
|
||||
SEND_POLLS: 1n << 49n,
|
||||
/** Allows user-installed apps to send public responses. When disabled, users will still be allowed to use their apps but the responses will be ephemeral. This only applies to apps not also installed to the server. */
|
||||
USE_EXTERNAL_APPS: 1n << 50n,
|
||||
/** Allows pinning and unpinning messages */
|
||||
PIN_MESSAGES: 1n << 51n,
|
||||
} as const
|
||||
|
||||
/** https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags */
|
||||
|
||||
Reference in New Issue
Block a user