> For the complete documentation index, see [llms.txt](https://docs.mochi.bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mochi.bot/resources/variables-and-placeholders/affiliate-variables.md).

# Affiliate Variables

Affiliate variables are a great tool for tailoring your Affiliate embed messages. With Affiliate variables, you can add a personal touch and make your affiliate message unique.&#x20;

<table data-full-width="false"><thead><tr><th width="295.3333333333333">Variable</th><th width="190">Example</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:purple;"><strong><code>{affiliate.rank}</code></strong></mark></td><td>i.e. 10</td><td>Displays the rank in the affiliate leaderboard</td></tr><tr><td><mark style="color:purple;"><strong><code>{affiliate.rank.ordinal}</code></strong></mark></td><td>i.e. 1st</td><td>Displays the rank in the affiliate leaderboard as an ordinal number.</td></tr><tr><td><mark style="color:purple;"><strong><code>{affiliate.count}</code></strong></mark></td><td>i.e. 12</td><td>Displays the number of affiliates  completed</td></tr><tr><td><mark style="color:purple;"><strong><code>{guild.affiliate.name}</code></strong></mark></td><td>i.e. Genshin Impact</td><td>Displays the affiliate server's name</td></tr><tr><td><mark style="color:purple;"><strong><code>{guild.affiliate.icon}</code></strong></mark></td><td></td><td>Displays the affiliate server's icon</td></tr></tbody></table>
