Method CheckPermission
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
CheckPermission(DiscordPermissions)
Checks whether this role has specific permissions.
public DiscordPermissionLevel CheckPermission(DiscordPermissions permissions)
Parameters
permissions
DiscordPermissionsPermissions to check for.
Returns
- DiscordPermissionLevel
Whether the permissions are allowed or not.