Class PermissionUtils
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
Provides a series of helper methods for permissions.
public static class PermissionUtils
- Inheritance
-
PermissionUtils
- Inherited Members
Methods
GetHieararchy(object)
Determines the hierarchy of a target object based on its type.
public static int GetHieararchy(object target)
Parameters
target
objectThe target object: IRole, IGuildUser, or IUser.
Returns
- int
An integer representing the hierarchy of the target.
Exceptions
- ArgumentOutOfRangeException
Thrown when the parameter type is not supported by this precondition attribute.