feat(types): Add PIN_MESSAGES permission (#4390)

This commit is contained in:
Fleny
2025-08-24 14:01:40 -07:00
committed by GitHub
parent 590653f572
commit 33ea279714
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -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 */