fn channel_permissions(
base: Permissions,
everyone: (Permissions, Permissions),
roles: (Permissions, Permissions),
member: (Permissions, Permissions),
) -> PermissionsExpand 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.