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​
Type | Name | Description |
---|---|---|
Discord.TokenType | tokenType | The type of token to validate. |
System.String | token | The token value to validate. |