---
description: >-
  In this page you will learn what is variable and how you use them to customize
  Mr. Tom message.
---

# Variables

## What is variable?

Variable is a placeholder to tell Mr. Tom to insert a dynamic data on your message. Most variables start with an opening brace `{` and end with a closing brace `}`.

{% hint style="warning" %}
<mark style="color:orange;">**Check this:**</mark> Variable names are case-sensitive.
{% endhint %}

### Example

Let say you want to create custom welcome message on your server and you want to insert the new joined member info on your message. You can use [User Variables](#user-variables) and [Server Variables](#server-variables) for that.

Your custom message: \
`Hi {user_mention}! Welcome to {server_name} server 🥰`\
\
Result:\
`Hi @CLY! Welcome to Mr Tom Support server 🥰`

{% hint style="info" %}
<mark style="color:blue;">**Good to know:**</mark> You also can use [discord markdown](https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline-) to design your message.
{% endhint %}

## User Variables

| Variable Name   | Description                            |
| --------------- | -------------------------------------- |
| {user\_name}    | To insert user name. Example: CLY      |
| {user\_tag}     | To insert user tag. Example: CLY #6333 |
| {user\_mention} | To mention user. Example: @CLY         |

## Server Variables

| Variable Name  | Description           |
| -------------- | --------------------- |
| {server\_name} | To insert server name |

## Leveling System Variables

| Variable Name | Description               |
| ------------- | ------------------------- |
| {level}       | To insert user new level  |
| {reward}      | To insert user new reward |

## Role Variables

| Variable Name | Description     |
| ------------- | --------------- |
| {roles}       | To insert roles |

## Discord Variables

|         | Description                                                                     | Example                |
| ------- | ------------------------------------------------------------------------------- | ---------------------- |
| <#ID>   | Discord Channel. Replace the ID with channel ID and it will mention the channel | <#862490123597119530>  |
| <@ID>   | Discord User. Replace the ID with User ID and it will mention the user          | <@272518184400322581>  |
| <@\&ID> | Discord Role. Replace the ID with Role ID and it will mention the role          | <@&934198707765784606> |

{% hint style="success" %}
<mark style="color:green;">**Tips:**</mark> To get the ID you can use [Get Features](../tools-features/get).
{% endhint %}
