TheDiscordian / onebot

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

Raw sending option #15

Closed TheDiscordian closed 2 years ago

TheDiscordian commented 3 years ago

Rn you can do quite a bit with the API. However where the API is lacking and it's not obvious if there should be a change, having some sort of raw sending option could be useful so protocols could more easily implement custom features extended by plugins. Raw would take an interface{} and the expected struct will vary depending on the protocol Raw is being used on.

This is a critical issue which will allow moderation plugins to be added in very quickly.

TheDiscordian commented 2 years ago

It might be more elegant to extend "extra features" into a "protocol lib" (like how onecurrency is a "plugin lib"). Will investigate.