Embed Instance MVVM
khionu opened this issue · 0 comments
khionu commented
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 whereS
is the staterender
function to generate the embed, taking the state and context, and returning anEmbedBuilder
and set of reactions to be added to the messagecallback
function 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
callback
is invoked. - Possibly an associated constant with configurations for that Page.