fix(permissions): wire up MUTE_MEMBERS bitmask and fix member permissions in frontend
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user