Skip to main content

channel_permissions

Function channel_permissions 

Source
fn channel_permissions(
    base: Permissions,
    everyone: (Permissions, Permissions),
    roles: (Permissions, Permissions),
    member: (Permissions, Permissions),
) -> Permissions
Expand description

Applies Discord’s permission algorithm to one channel.

ADMINISTRATOR in the base grants everything. Otherwise the @everyone overwrite, the merged role overwrites and the member’s own overwrite are applied in that order, each as deny-then-allow.