send-message
Description#
Posts a message when the rule fires: in the channel the rule fired in, or in a picked channel such as a moderation log. The message is written with text variables, and role or member names in it can ping ({&Moderation}, {@name}), while @everyone and @here never ping. Turn on self-delete to make the post clean itself up after a number of seconds.
Parameters#
| parameter | required | what it is | notes |
|---|---|---|---|
| message | yes | message | |
| embedName | yes | saved embed (optional) | |
| channel | yes | channel (blank replies here) | |
| selfDelete | optional | Self-delete message | |
| deleteAfter | optional | after (seconds) | default 10, shown when selfDelete is on |
Permissions#
The bot needs Send Messages in the target channel, and Mention All Roles for by-name role pings. Everyone and here pings are neutralized regardless.
Examples#
e.g. {&Moderation} {user.mention} tripped {rule} posted to a mod-log channel.
e.g. A public reply in the triggering channel that self-deletes after 10 seconds.