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
permPermissionsPermissions enumeration to convert.
useNewlineboolWhether to seperate permissions by newline. Defaults to false.
sortAscendingboolWhether to sort permissions from a to z. Defaults to true.
includeValueboolWhether to include the permissions value. Defaults to false.
shortIfAllboolWhether to show
All Permissions, if the member has all permissions. Defaults to <see langword="false"/>.
Returns
- string
Human-readable permissions.