Denizen Script Events

Events are a way to listen to things that happened on your server and respond to them through a script. These usually pair with 'world' script containers.
Learn about how events work in The Beginner's Guide.

Showing 1 out of 375 events...
Namediscord message received
Event Lines discord message received
Triggerswhen a Discord bot receives a message.
Generated Examplesafter discord message received:
Switchesfor:<bot> to only process the event for a specified Discord bot.
channel:<channel_id> to only process the event when it occurs in a specified Discord channel.
group:<group_id> to only process the event for a specified Discord group.
message:<message> to only process the event if the message matches some matcher text, like 'message:*hello*' to match any message that contains the word 'hello'.
Contexts<> returns the relevant DiscordBotTag.
<> returns the DiscordChannelTag.
<> returns the DiscordGroupTag.
<context.new_message> returns the message received, as a DiscordMessageTag.