Table of Contents

Enum RoleCheckMode

Namespace
DSharpPlus.CommandsNext.Attributes
Assembly
DSharpPlus.CommandsNext.dll

Specifies how RequireRolesAttribute checks for roles.

[Flags]
public enum RoleCheckMode
Extension Methods

Fields

All = 1

Member is required to have all of the specified roles.

Any = 2

Member is required to have any of the specified roles.

MatchIds = 16

Instructs the check to evaluate for matching role IDs.

MatchNames = 8

Instructs the check to evaluate for matching role names.

None = 0

Member is required to have none of the specified roles.

SpecifiedOnly = 4

Member is required to have exactly the same roles as specified; no extra roles may be present.