BotEx.Behaviours.Middleware behaviour (bot_ex v1.0.2)
Behaviour for a module that changes the contents of BotEx.Models.Message
Summary
Callbacks
Changes the contents of BotEx.Models.Message
Callbacks
@callback transform(BotEx.Models.Message.t()) :: BotEx.Models.Message.t() | atom()
Changes the contents of BotEx.Models.Message
Parameters
- msg:
BotEx.Models.Message
fromMiddlewareParser
or otherMiddleware