Method ToString
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
ToString()
Returns a string representation of this permission set.
public override readonly string ToString()
Returns
- string
ToString(string)
Returns a string representation of this permission set, according to the provided format string.
public readonly string ToString(string format)
Parameters
format
stringSpecifies the format in which the string should be created. Currently supported formats are:
raw
: This prints the raw, byte-wise backing data of this instance.name
: This prints each flag by name, separated by commas.name:format
: This prints each flag by name according to the specified format. The string{permission}
must be contained to mark the position of the flag.- anything else will print the integer value contained in this DiscordPermissions instance.
Returns
- string