Skip to main content

role_permissions

Function role_permissions 

Source
pub async fn role_permissions(
    http: &Client,
    guild_id: Id<GuildMarker>,
) -> Result<HashMap<Id<RoleMarker>, Permissions>>
Expand description

Returns the base permissions of every role in guild_id, from cache or the Discord API.

These are the other input of the visibility check besides the permission overwrites, so they are bounded by the same TTL and dropped by invalidate_guild_roles when Discord reports a change.