Skip to main content

Class TokenUtils

Provides a series of helper methods for handling Discord login tokens.

Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public static class TokenUtils

Methods​

ValidateToken(TokenType, String)​

Checks the validity of the supplied token of a specific type.

View Source​
Declaration
public static void ValidateToken(TokenType tokenType, string token)
Parameters​
TypeNameDescription
Discord.TokenTypetokenTypeThe type of token to validate.
System.StringtokenThe token value to validate.