Browse Source

Prefix tokens being sent to Gateway

As of 2016/09/08, Discord started enforcing the requirement for tokens to be prefixed with the account type. While REST requests were already prefixed tokens, Gateway connections did not use a prefixed token. This fixes a fatal bug where no bot clients can create connections to Discord.
pull/281/head
Christopher F 9 years ago
parent
commit
0339c0e4aa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/API/DiscordSocketApiClient.cs

+ 1
- 1
src/Discord.Net/API/DiscordSocketApiClient.cs View File

@@ -191,7 +191,7 @@ namespace Discord.API
};
var msg = new IdentifyParams()
{
Token = _authToken,
Token = GetPrefixedToken(AuthTokenType, _authToken),
Properties = props,
LargeThreshold = largeThreshold,
UseCompression = useCompression,


Loading…
Cancel
Save