igolaizola / bulkai

AI image generation in bulk automatically
MIT License
201 stars 42 forks source link

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

Open Judufu opened 1 year ago

Judufu commented 1 year ago

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 commented 1 year ago

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

igolaizola commented 10 months ago

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