Channel Permission Override (Expression) — DiSky
Addon: DiSky · Category: Expression · Since: 5.0.0-b1
Syntax
[the] (allowed|denied) discord permissions of %types.member/types.role% in [the] [channel] %types.guildchannel%Description
The permissions a channel explicitly allows or denies to one member or role (its permission override). Empty when the channel has no override for it; anything neither allowed nor denied is inherited from the guild-wide permissions. Add, remove and set change the override on Discord, creating it if needed. Adding to the allowed permissions also takes them out of the denied ones (a permission cannot be both), and the other way around. Removing only clears them from the list you name: removing from the allowed permissions does not deny them, it makes them inherited again. Reset (or delete) removes the whole override, allowed and denied together. In a thread, the override is the parent channel's: changing it changes the parent channel. The bot needs the 'manage permissions' permission in the channel (or 'manage roles' guild-wide), and can only allow or deny permissions it has itself. Under 'await' the change waits for Discord.
Examples
await add send messages to allowed discord permissions of event-member in event-channel
await add view channel to denied discord permissions of {_role} in {_channel}
remove send messages from denied discord permissions of event-member in event-channel
set {_denied::*} to denied discord permissions of {_role} in event-channel
await reset allowed discord permissions of event-member in event-channel