Enum RoleCheckMode
- Namespace
- DSharpPlus.CommandsNext.Attributes
- Assembly
- DSharpPlus.CommandsNext.dll
Specifies how RequireRolesAttribute checks for roles.
[Flags]
public enum RoleCheckMode
- Extension Methods
Fields
All = 1Member is required to have all of the specified roles.
Any = 2Member is required to have any of the specified roles.
MatchIds = 16Instructs the check to evaluate for matching role IDs.
MatchNames = 8Instructs the check to evaluate for matching role names.
None = 0Member is required to have none of the specified roles.
SpecifiedOnly = 4Member is required to have exactly the same roles as specified; no extra roles may be present.