Understand and use Context in Atlas
Context represents the information Atlas possesses about the 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 primarily used to determine default values for tags. For example, if a tag like {user.name} is used without a specified value, Atlas uses the user currently in context. If a tag parameter is listed as having a context Channel default, it can be omitted if the current trigger provides a channel.
Context varies by trigger:
- Message Create: Provides message, user, and channel context.
- Slash Command: Provides the user who ran the command, the channel, and command options.
- Feed Delivery: Provides
{$feed}and{$feedItem}context. - Interval Action: Has no message context because it runs on a schedule.
- Webhook Action: Provides request data instead of standard message context.
When an action lacks a specific piece of context (e.g., an interval action lacking a message), you must provide the required value (channel, user, etc.) directly to the tag.