fix(permissions): wire up MUTE_MEMBERS bitmask and fix member permissions in frontend

This commit is contained in:
2026-07-06 13:27:38 +00:00
parent b1b41ca5e1
commit 1d37284c25
3 changed files with 15 additions and 7 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ const PERMS = {
CONNECT_VOICE: 256,
SPEAK_VOICE: 512,
SHARE_SCREEN: 1024,
MUTE_MEMBERS: 2048,
CHANGE_NICKNAME: 8192,
MANAGE_NICKNAMES: 16384,
MANAGE_ROLES: 32768,
@@ -46,7 +47,7 @@ export function usePermissions(serverId: string | null) {
return {
canKick: has(PERMS.KICK_MEMBERS),
canBan: has(PERMS.BAN_MEMBERS),
canMute: has(PERMS.MANAGE_MESSAGES),
canMute: has(PERMS.MUTE_MEMBERS),
canManageChannels: has(PERMS.MANAGE_CHANNELS),
canManageRoles: has(PERMS.MANAGE_ROLES),
canManageServer: has(PERMS.MANAGE_SERVER),