From e34690ff6c8d5733014769bbf6105c69e2c93c45 Mon Sep 17 00:00:00 2001 From: Ruby Date: Sun, 2 Jun 2024 18:27:57 +0200 Subject: [PATCH] chore: sort permissions alphabetically --- backend/src/utils/permissionNames.ts | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/backend/src/utils/permissionNames.ts b/backend/src/utils/permissionNames.ts index 8b68eecfc..b80c0bb41 100644 --- a/backend/src/utils/permissionNames.ts +++ b/backend/src/utils/permissionNames.ts @@ -8,6 +8,8 @@ export const PERMISSION_NAMES = { BanMembers: "Ban Members", ChangeNickname: "Change Nickname", Connect: "Connect", + CreateEvents: "Create Events", + CreateGuildExpressions: "Create Expressions", CreateInstantInvite: "Create Invite", CreatePrivateThreads: "Create Private Threads", CreatePublicThreads: "Create Public Threads", @@ -16,13 +18,16 @@ export const PERMISSION_NAMES = { KickMembers: "Kick Members", ManageChannels: "Manage Channels", ManageEmojisAndStickers: "Manage Emojis and Stickers", + ManageEvents: "Manage Events", ManageGuild: "Manage Server", + ManageGuildExpressions: "Manage Expressions", ManageMessages: "Manage Messages", ManageNicknames: "Manage Nicknames", ManageRoles: "Manage Roles", ManageThreads: "Manage Threads", ManageWebhooks: "Manage Webhooks", MentionEveryone: `Mention @${EMPTY_CHAR}everyone, @${EMPTY_CHAR}here, and All Roles`, + ModerateMembers: "Moderate Members", MoveMembers: "Move Members", MuteMembers: "Mute Members", PrioritySpeaker: "Priority Speaker", @@ -30,26 +35,20 @@ export const PERMISSION_NAMES = { RequestToSpeak: "Request to Speak", SendMessages: "Send Messages", SendMessagesInThreads: "Send Messages in Threads", + SendPolls: "Create Polls", SendTTSMessages: "Send Text-To-Speech Messages", + SendVoiceMessages: "Send Voice Messages", Speak: "Speak", - UseEmbeddedActivities: "Start Embedded Activities", Stream: "Video", UseApplicationCommands: "Use Application Commands", + UseEmbeddedActivities: "Start Embedded Activities", UseExternalEmojis: "Use External Emoji", + UseExternalSounds: "Use External Sounds", UseExternalStickers: "Use External Stickers", + UseSoundboard: "Use Soundboard", UseVAD: "Use Voice Activity", ViewAuditLog: "View Audit Log", ViewChannel: "View Channels", - ViewGuildInsights: "View Guild Insights", - ModerateMembers: "Moderate Members", - ManageEvents: "Manage Events", - ManageGuildExpressions: "Manage Expressions", - SendVoiceMessages: "Send Voice Messages", - UseExternalSounds: "Use External Sounds", - UseSoundboard: "Use Soundboard", ViewCreatorMonetizationAnalytics: "View Creator Monetization Analytics", - SendPolls: "Allows Sending Polls", - CreateEvents: "Allows for creating scheduled events, and editing and deleting those created by the current user.", - CreateGuildExpressions: - "Allows for creating emojis, stickers, and soundboard sounds, and editing and deleting those created by the current user.", + ViewGuildInsights: "View Guild Insights", } as const satisfies Record;