Method ToPermissionString
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
ToPermissionString(Permissions, bool, bool, bool, bool)
Converts this Permissions into human-readable format.
public static string ToPermissionString(this Permissions perm, bool useNewline = false, bool sortAscending = true, bool includeValue = false, bool shortIfAll = false)
Parameters
perm
PermissionsPermissions enumeration to convert.
useNewline
boolWhether to seperate permissions by newline. Defaults to false.
sortAscending
boolWhether to sort permissions from a to z. Defaults to true.
includeValue
boolWhether to include the permissions value. Defaults to false.
shortIfAll
boolWhether to show
All Permissions
, if the member has all permissions. Defaults to <see langword="false"/>.
Returns
- string
Human-readable permissions.