Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Judufu opened this issue Oct 4, 2023 · 2 comments
Open

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

Judufu opened this issue Oct 4, 2023 · 2 comments

Comments

@Judufu
Copy link

Judufu commented Oct 4, 2023

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
Copy link
Author

Judufu commented Oct 4, 2023

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

@igolaizola
Copy link
Owner

igolaizola commented Jan 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants