|
@@ -128,7 +128,7 @@ namespace Discord.API |
|
|
RestClient.SetCancelToken(_loginCancelToken.Token); |
|
|
RestClient.SetCancelToken(_loginCancelToken.Token); |
|
|
|
|
|
|
|
|
AuthTokenType = tokenType; |
|
|
AuthTokenType = tokenType; |
|
|
AuthToken = token.Trim(); |
|
|
|
|
|
|
|
|
AuthToken = token; |
|
|
if (tokenType != TokenType.Webhook) |
|
|
if (tokenType != TokenType.Webhook) |
|
|
RestClient.SetHeader("authorization", GetPrefixedToken(AuthTokenType, AuthToken)); |
|
|
RestClient.SetHeader("authorization", GetPrefixedToken(AuthTokenType, AuthToken)); |
|
|
|
|
|
|
|
|