TheDiscordian / onebot

One bot to rule them all...
BSD 3-Clause "New" or "Revised" License
14 stars 1 forks source link

Inject, Track, and Utilize Webhooks on Discord #11

Open TheDiscordian opened 4 years ago

TheDiscordian commented 4 years ago

I want to utilize features like inline links, formatted text, and puppets. I can get at least 2 of these things with webhooks. I'm thinking they can work similarly to how Nicknames are tracked in the Matrix plugin, store them in a map, and try to populate it when necessary.

Discord sets webhooks per channel, so OneBot simply needs to track what channels it has a working webhook on, and attempt creation when it doesn't have one. When creation is impossible, fallback to the current system (just send messages directly, barely better than a normal user).

TheDiscordian commented 4 years ago

I wonder how inline links are done in DMs.