---
url: https://docs.juniper.bot/en/message-templates/advanced/variables.md
description: General variables for most of Message Templates
---

[Number]: /en/message-templates/types/index#literals

[String]: /en/message-templates/types/index#literals

[Boolean]: /en/message-templates/types/index#literals

[List]: /en/message-templates/types/index#lists

[Map]: /en/message-templates/types/index#maps

[DateTime]: /en/message-templates/types/index#datetime

[TwitchChannel]: /en/message-templates/types/subscriptions/twitch#twitch-channel

[TwitchStream]: /en/message-templates/types/subscriptions/twitch#twitch-stream

[TwitchGame]: /en/message-templates/types/subscriptions/twitch#twitch-game

[YouTubeChannel]: /en/message-templates/types/subscriptions/youtube#youtube-channel

[YouTubeVideo]: /en/message-templates/types/subscriptions/youtube#youtube-video

[VkWallPost]: /en/message-templates/types/subscriptions/vk#vkwallpost

[Rank]: /en/message-templates/types/discord/rank

[Guild]: /en/message-templates/types/discord/guild

[Member]: /en/message-templates/types/discord/member

[Role]: /en/message-templates/types/discord/role

[Message]: /en/message-templates/types/discord/message

[Attachment]: /en/message-templates/types/discord/attachment

[Embed]: /en/message-templates/types/discord/embed

[Activity]: /en/message-templates/types/discord/activity

[MemberVoiceState]: /en/message-templates/types/discord/member-voice-state

[MemberPrimaryGuild]: /en/message-templates/types/discord/member-primary-guild

[MenuBuilder]: /en/message-templates/types/discord/menu-builder

[UserFlag]: /en/message-templates/types/discord/user-flag

[Permission]: /en/message-templates/types/discord/permission

[Category]: /en/message-templates/types/discord/category

[TextChannel]: /en/message-templates/types/discord/text-channel

[VoiceChannel]: /en/message-templates/types/discord/voice-channel

[NewsChannel]: /en/message-templates/types/discord/news-channel

[StageChannel]: /en/message-templates/types/discord/stage-channel

[ForumChannel]: /en/message-templates/types/discord/forum-channel

[MediaChannel]: /en/message-templates/types/discord/media-channel

[ThreadChannel]: /en/message-templates/types/discord/thread-channel

[Page]: /en/message-templates/types/storage/page

[GuildIndex]: /en/message-templates/types/storage/guild-index

[GuildIndexEntry]: /en/message-templates/types/storage/guild-index-entry

[GuildIndexes]: /en/message-templates/types/storage/guild-indexes

[MemberAttribute]: /en/message-templates/types/storage/member-attribute

[MemberAttributes]: /en/message-templates/types/storage/member-attributes

[Arguments]: /en/message-templates/types/custom-commands/arguments

[Parameters]: /en/message-templates/types/custom-commands/parameters

[Component]: /en/message-templates/types/custom-commands/component

[Modal]: /en/message-templates/types/custom-commands/modal

# Variables

::: info

Some message templates have their own unique variables related to the feature they represent.
Those variables are described in corresponding articles, such as:

* [Member Ranking](../../ranking/index#announcement)
* [Auto-Moderation Filters](../../auto-moderation/index#filters)
* [Subscriptions](../../subscriptions/index)

:::

### Common Variables { #common }

Message Templates have some common predefined variables:

| Variable        | Type          | Description                                                                                                                                                                                         |
|:----------------|:--------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `guild`         | \[Guild]       | Server information                                                                                                                                                                                  |
| `bot`           | \[Member]      | Member instance of JuniperBot itself                                                                                                                                                                |
| `member`        | \[Member]      | Member instance related to this template                                                                                                                                                            |
| `channel`       | \[TextChannel] | Target channel where this template should be sent (if only guild message, not DMs)                                                                                                                  |
| `sourceChannel` | \[TextChannel] | Source channel like the channel where the custom command were invoked. It is different from `channel` that the last one may be different target channel selected in the message template interface. |
| `message`       | \[Message]     | Message instance related to this template. For example, custom command invocation message or violation message in Auto-Moderation.                                                                  |
| `override`      | \[Embed]       | Embed overrides (allows to set template embed values by code)                                                                                                                                       |

Those variables are always included in every message template. Sections below will describe some additional variables for a different message templates.

### Custom Commands { #custom-commands }

Additional variables passed to custom commands [Actions](../../cmd/custom/actions/index).

| Variable     | Type         | Description                                        |
|:-------------|:-------------|:---------------------------------------------------|
| `arguments`  | \[Arguments]  | Information about arguments passed to the command. |
| `parameters` | \[Parameters] | Information about parameters passed to the action. |
| `component`  | \[Component]  | Information about component executed the action.   |
| `modal`      | \[Modal]      | Information about modal executed the action.       |
