bulkai icon indicating copy to clipboard operation
bulkai copied to clipboard

Couldn't create discord client: discord: couldn't parse token

Open Judufu opened this issue 1 year ago • 2 comments

Discord won't start after creating a new Session.yaml

Similar to Bug report #30 But this time the error occured while using a windows machine.

Tried Chrome Version 117 and 113. There seems to be a problem with this piece of code

split := strings.SplitN(cfg.Token, ".", 2)
if len(split) != 2 {
	return nil, fmt.Errorf("discord: couldn't parse token")
}

in the discord.go file

image removed

Judufu avatar Oct 04 '23 10:10 Judufu

Workaround: Pulled the token manually from the dev tools. Now it works as intended

Judufu avatar Oct 04 '23 13:10 Judufu

I haven't figured out why Discord sometimes generates a token with a different format, and I don't know how to reproduce it. 🙈

igolaizola avatar Jan 15 '24 22:01 igolaizola