UsePermissions
usePermissions
Returns a hasPermissions
function that can be used to determine whether the active user
has the given permissions on the active channel.
Example
const { hasPermissions } = usePermissions();
const canReadChannel = hasPermissions(['ReadChannel']);
Signature
function usePermissions(): void