Skip to main content

UsePermissions

Returns a hasPermissions function that can be used to determine whether the active user has the given permissions on the active channel.

Example

Tsx
const { hasPermissions } = usePermissions();const canReadChannel = hasPermissions(['ReadChannel']);
Signature
function usePermissions(): void
Was this chapter helpful?
Report Issue
Edited Feb 2, 2026·Edit this page