Table of Contents

Method HasPermission

Namespace
DisCatSharp.Enums
Assembly
DisCatSharp.dll

HasPermission(Permissions, Permissions)

Calculates whether this permission set contains the given permission.

public static bool HasPermission(this Permissions p, Permissions permission)

Parameters

p Permissions

The permissions to calculate from.

permission Permissions

The permission you want to check.

Returns

bool