Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Pass all of Discord's webhook message IDs to PluralKit API to determine if they are from PluralKit #5

@gregdan3

Description

@gregdan3

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions