bwmarrin / discordgo

(Golang) Go bindings for Discord
BSD 3-Clause "New" or "Revised" License
5.12k stars 817 forks source link

discord.Open() 4004 Solution #1183

Open YonLiud opened 2 years ago

YonLiud commented 2 years ago

After coding for a bit I have noticed that authentication no longer requires adding the prefix "Bot +" before the token

- dg, err := discordgo.New("Bot " + token)
+ dg, err := discordgo.New(token)
FedorLap2006 commented 2 years ago

What library version are you on? I can't seem to repdoduce the behaviour.

YonLiud commented 2 years ago

What library version are you on? I can't seem to reproduce the behavior.

v0.25.0 as far as I am aware

Thanks for the edit too, didn't know this markdown is possible