Context represents the information Atlas possesses about the specific event it is currently handling. It allows commands, plugins, actions, restrictions, and scripts to access details about the current server, member, channel, message, or event.
Context is critical when writing scripts because it determines which tags have default values. For example:
- Message Create action: Provides message, user, and channel context.
- Slash Command action: Provides the user who executed the command, the channel, and command options.
- Feed delivery: Provides
{$feed} and {$feedItem} context.
When a tag is used without an explicit value (e.g., {user.name} or {message.delete}), Atlas uses the entity currently in context. If a tag parameter is documented as having a context Channel default, it can be omitted if the current trigger provides a channel in its context.
Note that some actions have limited or different context:
- Interval actions: Have no message context as they run on a schedule.
- Webhook actions: Provide request data instead of standard message context.
In cases where the required context is missing, you must provide the channel, user, or message value directly to the tag.