-
Notifications
You must be signed in to change notification settings - Fork 6
Getting empty strings for content #17
Comments
I'm getting this too on linux with konsole. |
Tested on Windows using Windows Terminal running Powershell, and have the same problem. |
Yep can reproduce on linux with kitty too. Will look into this. |
reproducible on a tty, universal issue it seems |
seems so, gonna start debugging now 👍 |
Yes, appears to be issue in (my fork of?) discordgo, as the content is missing in the calling method too. |
luckily |
This has been fixed with a combination of gord-project/discordgo@ec47099 and https://github.com/cainy-a/gord/releases/tag/2021-05-06 It's a hacky fix, but it works well and doesnt add any real slowdown so cool I guess. Will close once release is built. |
OK it's fixed! 🎉 Check the latest release as linked above. |
Awesome! |
looks like it's still happening sort of, now messages that were just sent render fine, but when I go into a channel, all messages sent while i wasn't in the channel (and sent after I opened gord) don't render, the rest do, but when the channel's open they all render fine |
i suspect if you omit the |
I'm getting this issue again on the newest version. |
Aw crap |
Confirmed that it happens for messages in channels that are not active. Switching to these channels shows messages without content. |
E.g. Channel 1 active, switch to channel 2. Message recieved on channel 1. Notification comes with message content, but switching to channel 1 doesn't show the message content. |
Hmm ok maybe it only applies the workaround to get content when rendering not on fetching or something weird like that... |
Any progress on this yet? |
OK I've got the issue. The message object is fetched when the message is received, but it should be fetched on render - once you are in the correct channel. Either that or my ChannelMessage function is broken. |
ok yes the function in restapi.go in discordgo is dumb, I will fix ASAP. |
just use assembly idiot lol |
my bad lmao |
ok turns out it was already fixed at discordgo master, i just forgot to tag it :\ |
ok it no longer errors but content is empty. Progress but still not ideal. |
AWW YEAH FIXED IT |
Now to make sure it works with caching |
and it does POG |
I can't believe that like 4 lines fixed that. |
Here we go https://github.com/yellowsink/gord/releases/2021-06-16 epic |
Nice! this was really starting to annoy me :P |
Yeah its nice to get such a problematic bug done with so i can focus on features (im thinking images :p ) |
Lack of #21 is starting to bug me :P |
Yay! |
ok uh whenever a reaction is added to a message that didn't already have any reactions this happens now |
Huh that's odd. As in messages in the focused then unfocused state this originally occurred in? Or all messages? |
It's pretty random, but usually unfocused messages. It's still better than it was before |
Hmm okay |
Uh i only noticed it where a message that just had its first reaction added to it disappears |
right... this sounds like itll be really specific if its this weird |
ok even weirder, when you're in a channel, and then go to the guild selection box with Alt+S, then select a guild, but don't select a channel, then go back and select the same guild and channel you were in before, all messages that were not sent by you, and were sent after gord was opened, disappear I have literally no clue why this specific scenario causes that, this is incredibly odd |
What the... |
OK that's weird |
How have you installed gord
What happened
The content is being rendered/obtained as an empty string.
Error output
The history of the messages and the content of any replies are showing fine, the main message/content is empty.
How do you reproduce this bug
Build and Run normally as you would and observe any channel.
System information
The text was updated successfully, but these errors were encountered: