Members with roles (Expression) — DiSky
Addon: DiSky · Category: Expression · Since: 4.28.0
Syntax
members with [the] role[s] %roles% (of|from|in) [the] [guild] %guild%Description
Returns the members that have the specified role(s) in a guild. This will act differently, wether **await** is used or not:
- If **await** is used, the members will be retrieved asynchronously from Discord, you're sure to have every member with the specified role(s) in the returned array. - If **await** is __not__ used, the members will be retrieved from cache (according to the configured cache policy), so some members with the specified role(s) may not be included in the returned array.
Examples
set {_role} to role with id "123456789"
await set {_members::*} to members with role {_role} from event-guild # will ask discord for every members. Recommended!
set {_members::*} to members with role {_role} from event-guild # will get members from cache, so some members may be missing.