discord-mods-bot
discord-mods-bot copied to clipboard
Embed Instance MVVM
Various parts of the bot will get a bit "noisy" to not have some feature to limit the amount of information displayed. I suggest we have a utility to manage embeds via limited-lifetime MVVM instances.
Suggested outline:
- A
Page<S>trait whereSis the staterenderfunction to generate the embed, taking the state and context, and returning anEmbedBuilderand set of reactions to be added to the messagecallbackfunction for when a reaction is clicked. Takes state and context, and returns aTransition, which will includeTransition::NoOp
- This will be managed in a Future that has an inner time out that is reset immediately before
callbackis invoked. - Possibly an associated constant with configurations for that Page.