role constant

Flag<CooldownType> const role

A cooldown type that sorts contexts depending on the highest-level role the user invoking the command has.

If the user has no role, then the id of the Guild is used. If the context was not invoked from a guild, then this type behaves the same as user.

Implementation

static const Flag<CooldownType> role = Flag<CooldownType>.fromOffset(5);