suicvne / DiscordSharp

A .Net API for Discord written in C#
MIT License
129 stars 33 forks source link

DiscordClient IsBotAccount field is always false #27

Closed lzrp closed 8 years ago

lzrp commented 8 years ago
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.

suicvne commented 8 years ago

Yup, innocent typo. My bad :D