-
Couldn't load subscription status.
- Fork 1
Description
In Discord, detecting bot messages is normally easy. Discord delivers a field that tells you whether the message is from a bot, and whether the message is from a webhook- and if the message is from a webhook, it is also considered to be from a bot.
Here's the trouble: PluralKit sends messages via webhooks, and so do many other tools such as those that copy Github notifications into Discord.
Currently, I count all user messages and all webhook messages so that I don't miss PluralKit messages, but this means I count messages which are from webhooks other than PluralKit. These webhooks are overwhelmingly automated messages, and a few of them have been intently adjusted to emit messages in Toki Pona, so suddenly those are included despite being effectively bot messages. Oops!
I'd like to take all my webhook message IDs and ask the PluralKit API if they're from PluralKit. I just haven't done so yet. I'd also like to store that information independently of the EdgeDB database, so that I can archive it separately from the backed up database blob. Put another way, it should be possible to construct my entire database from scratch if you have all my same data.
That "doing so" should include the original message ID, and either a null author ID or the author ID belonging to the original account.
Separately, I wonder what PluralKit does with deleted accounts?