ConversationFlavor
ref / conversations / ConversationFlavor
Context flavor for the outside middleware tree. Installs ctx
on the type of a context object so it can be used to enter or exit conversations as well as inspect active conversations.
This should only be installed if you install the conversations middleware.
Note that it is not possible to use the conversations plugin recursively inside conversations. In other words ctx
does not exist inside a conversation. Consequently, it is always incorrect to install this context flavor for context objects inside conversations.
Type Parameters
C
ts
C extends Context
Type
ts
C & { conversation: ConversationControls }