discord-net / Discord.Net

An unofficial .Net wrapper for the Discord API (https://discord.com/)
https://discordnet.dev
MIT License
3.28k stars 743 forks source link

Token.user and user password not working #409

Closed sscoleman closed 7 years ago

sscoleman commented 7 years ago

I tried my user token and it fails with An unhandled exception of type 'Discord.Net.TimeoutException' occurred in mscorlib.dll Additional information: An operation has timed out.

and my user\pass and it fails with An unhandled exception of type 'Discord.Net.TimeoutException' occurred in mscorlib.dll Additional information: An operation has timed out.

if you have time. i 'd appreciate your help. { _client = new DiscordClient();

    _client.MessageReceived += async (s, e) =>
    {
        if (!e.Message.IsAuthor)
            await e.Channel.SendMessage(e.Message.Text);
    };

    _client.ExecuteAndWait(async () => { await _client.Connect("GOT MY TOKEN", TokenType.User); });

//or _client.ExecuteAndWait(async () => { await _client.Connect("EMAIL","PASS"); });

}

}

Flamanis commented 7 years ago

GASP You're timing out.

Flamanis commented 7 years ago

If you want any actual support, in which we can actually talk and help you through whatever you've done wrong, join the discord. https://discord.gg/discord-api

foxbot commented 7 years ago

If you're using 0.9.6, userbots are not supported. Downgrade to 0.9.5, or use the latest master commit

sscoleman commented 7 years ago

thanks foxbot that was the issue. Will user bots be supported in the future? latest master implies it will. can you confirm?

foxbot commented 7 years ago

yes, 1.0 has full support for userbots

sscoleman commented 7 years ago

thanks foxbot, very helpful. ill close this now!