Payload of the 'send' hooks: every outbound send (ctx.reply, bot.send, broadcasts), plus edits (edit) and streamed output (stream). A before hook may rewrite content and options in place, or abort() to skip the send (it then resolves skipped).
'send'
ctx.reply
bot.send
edit
stream
before
content
options
abort()
skipped
Optional
Set on streamed output: a new message, a live edit or a native draft preview.
Set when the send edits an existing message in place (ctx.edit()).
ctx.edit()
Payload of the
'send'hooks: every outbound send (ctx.reply,bot.send, broadcasts), plus edits (edit) and streamed output (stream). Abeforehook may rewritecontentandoptionsin place, orabort()to skip the send (it then resolvesskipped).