RickvanLoo / discord-cli

Minimalistic Command-Line Interface for Discord
GNU General Public License v2.0
203 stars 32 forks source link

Unable to unmarshal event data #41

Open SIGSTACKFAULT opened 6 years ago

SIGSTACKFAULT commented 6 years ago

First problem: It would be fine if it just printed this, but then it prints a whole bunch of json, making the program impossible to use. I fixed it by commenting out line 241 in ~/go/src/github.com/Rivalo/discordgo_cli/discord.go. I then found that, on trying to join a channel:

*Starting Session... PASSED!
Select a Guild:
[0] Distance
[1] Ozzyinspace
[2] Toast Airways
[3] TheReadPanda
[4] /r/incremental_games
[5] My Colony
[6] Blacksilver & Co
[7] Solving Stratzenblitz
[8] Kerbal Capitalism Program
[b] Extra Options
Unable to unmarshal event data.
8
Select a Channel:
[b] Go Back
1
(CH) Error: ID is out of bound

There are no options. Periodically, it will print again Unable to unmarshal event data.

Is it possible that I'm missing a library? If so, which one, and how do I get it?

It's not a problem with the computer it's running on; there's a bot running on it. I tried killing the bot to check if they were conflicting, no dice.

Some more things:

Ozfer commented 6 years ago

I'm having the same problem.

SIGSTACKFAULT commented 6 years ago

@Rivalo @Rivalo @Rivalo @Rivalo

RickvanLoo commented 6 years ago

Project has been abandoned as can clearly been seen from the commit history. I might consider changing my opinion about that if instead of people bugging me by quoting my name 4 times in an unnecessary reply or bugging me about a spelling mistake in an error message they would actually dig into the code.

I can understand if people don't want to, and want to use a finished product. But it's not finished and don't expect me alone to do work for a project I even don't use anymore.

I currently see an abundance of people wanting to use this, but literally no one who wants to contribute any to it. Fixing that spelling mistake would have been as simple as a one line commit. As long as that doesn't change I won't spend my free time on this.

If I see someone who wants to contribute, then I will as soon as possible change the code base to the newest API version and get rid of some bugs.

Sent from my Cyanogen phone

On 30 Nov 2017 2:59 pm, Blacksilver42 notifications@github.com wrote:

@Rivalo @Rivalo @Rivalo @Rivalo

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

SIGSTACKFAULT commented 6 years ago

Okay, cool. HMB while I learn Go. *cracks knuckles*

Still, which library am I missing?

ladybunne commented 6 years ago

@Blacksilver42 You're not missing any libraries, the existing event data handling is incompatible with the data it's receiving.

I'm looking into this. I think something changed on the API end since the last commit (March 10, 2016), to me that's the most likely reason for the data not being able to be marshalled.

ladybunne commented 6 years ago

I have some more info! I believe it was categories that broke the channel unmarshalling. Discord added them somewhat recently, they added a new field called parent_id to the channel data. I'm not certain, but I think this is probably the cause of the broken channel list. Will continue to investigate.

SIGSTACKFAULT commented 6 years ago

Ooh, yeah, that sounds like it could be the problem.