public DiscordClient(string tokenOverride = null, bool isBotAccount = false)
{
token = tokenOverride;
**isBotAccount = IsBotAccount;**
// more code
}
Seems to me as a typo as it should be IsBotAccount = isBotAccount, since this way you are assigning a default (false) value to the supplied parameter variable. This way the bot never adds the appropriate values to auth headers.
Seems to me as a typo as it should be
IsBotAccount = isBotAccount
, since this way you are assigning a default (false) value to the supplied parameter variable. This way the bot never adds the appropriate values to auth headers.