Discord-History-Tracker icon indicating copy to clipboard operation
Discord-History-Tracker copied to clipboard

Record displayed nicknames and avatars, specifically for webhooks

Open evg-zhabotinsky opened this issue 5 years ago • 5 comments

Some bots post their messages through webhooks. IRC<->Discord relay bots do that, for example. The displayed nickname and avatar can be different for every post, and neither is currently saved by DHT, it seems. (Only tried the copy-paste version from the site.)

evg-zhabotinsky avatar Apr 14 '19 17:04 evg-zhabotinsky

Also not just user avatars but what about server icons and group icons as well?

AnastasiaDunbar avatar Jul 18 '19 14:07 AnastasiaDunbar

That is a limitation of the way DHT saves users. A workaround could be to detect bot messages and register each nickname as a new user, but then it wouldn't be possible to use the discord user ID since each ID can only have 1 nickname in the archive format.

Avatars/icons/images/anything else that isn't plain text is never going to be saved, DHT is not the right tool for that.

chylex avatar Jul 18 '19 16:07 chylex

Not even the URLs redirecting to the profile pictures? Like in user properties for avatars they'd be replaced (by new URLs, as a plain string) ~~or pushed into an array~~ (if previous one's not deleted, but I don't think Discord does this), should be optional though. Like: [idNumber]:{"name":username,"avatar":avatarURL}

AnastasiaDunbar avatar Jul 22 '19 05:07 AnastasiaDunbar

Recording user avatars matters much less than recording the webhook name, the latter is often essential for understanding conversations with linkers like matterbridge, etc.

Legend-of-iPhoenix avatar Jan 05 '21 17:01 Legend-of-iPhoenix

I'll take a look at how username switching works on Discord's end at some point, and see how easy it would be to support this.

chylex avatar Jan 26 '22 17:01 chylex

Closing in favor of #247.

chylex avatar Dec 31 '23 16:12 chylex