I am new to C# and discord bot development, and so this might be a very stupid problem, but i was searching everywhere and i found nothing.
I have some very basic code for my bot, and i am getting no errors except for error 401 unauthorized. I made sure my token is not a client secret, i even resetted the token and copied the new one to be sure, but i am always getting the same error.
#Token
1 messages · Page 1 of 1 (latest)
could you show your code?
where ?
I mean
the Unauthorized thing
something is throwing this exception
is it LoginAsync() or StartAsync()?
wait, imma take a look :D
ah, ig you got it from client logs
welp
the only thing that could cause this is invalid token
did you commit the token to a public github repo by any chance?
discord invalidates commited tokens
it's the latest
3.10.0?
but it's the unstable through myget feed
yes
ok, will do
also
the console is also throwing this at me, i think it could be useful
17:15:17 Discord Discord.Net v2.1.1 (API v6)
17:15:17 Discord A supplied token was invalid.:
System.ArgumentException: A Bot token must be at least 58 characters in length. Ensure that the Bot Token provided is not an OAuth client secret.
Parameter name: token
at Discord.TokenUtils.ValidateToken(TokenType tokenType, String token)
at Discord.Rest.BaseDiscordClient.<LoginInternalAsync>d__34.MoveNext()
oh well
first of all
Discord.Net v2.1.1
that's not 3.10.0 
I think I might know why tho
Discord.Net package on myget has bugged dependencies
so the nightly build is old ?
nah
just deps are bugged
& it defaults to whatever it can find
install Discord.Net.X packages one by one
X being Core, Rest, WebSocket, Commands and Interactions
