Table of Contents

Constructor RequireRolesAttribute

Namespace
DisCatSharp.CommandsNext.Attributes
Assembly
DisCatSharp.CommandsNext.dll

RequireRolesAttribute(RoleCheckMode, params string[])

Defines that usage of this command is restricted to members with specified role. Note that it's much preferred to restrict access using RequirePermissionsAttribute.

public RequireRolesAttribute(RoleCheckMode checkMode, params string[] roleNames)

Parameters

checkMode RoleCheckMode

Role checking mode.

roleNames string[]

Names of the role to be verified by this check.