Table of Contents

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 Permissions

Permissions enumeration to convert.

useNewline bool

Whether to seperate permissions by newline. Defaults to false.

sortAscending bool

Whether to sort permissions from a to z. Defaults to true.

includeValue bool

Whether to include the permissions value. Defaults to false.

shortIfAll bool

Whether to show All Permissions, if the member has all permissions. Defaults to <see langword="false"/>.

Returns

string

Human-readable permissions.