use-permissions.md 779 B


title: "UsePermissions" isDefaultIndex: false

generated: true

import MemberInfo from '@site/src/components/MemberInfo'; import GenerationInfo from '@site/src/components/GenerationInfo'; import MemberDescription from '@site/src/components/MemberDescription';

usePermissions

Status: Developer Preview

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

function usePermissions(): void