Table of Contents

Class SortUtils

Namespace
Discord
Assembly
Discord.Net.Core.dll

Provides a series of helper methods for handling sorting parameters.

public static class SortUtils
Inheritance
SortUtils
Inherited Members

Methods

ToStringIdentifier(SortAlgorithm)

Used to get the valid string identifier used by discord's sorting algorithm options.

public static string ToStringIdentifier(SortAlgorithm value)

Parameters

value SortAlgorithm

The sorting SortAlgorithm

Returns

string

A string representing the correct string identifier.

ToStringIdentifier(SortDirection)

Used to get the valid string identifier used by discord's sorting direction options.

public static string ToStringIdentifier(SortDirection value)

Parameters

value SortDirection

The sorting SortDirection

Returns

string

A string representing the correct string identifier.