Skip to content

Variables in embeds

A variable is a word between braces, like {memberMention}, that iHorizon replaces when it sends the embed. Because one embed can be used by several features, the same embed can be filled differently: the feature that sends it decides which variables it knows.

WelcomerJoin and leave messagesMember, server and inviter variables
TicketsEmbeds inside a ticketMember and server variables, plus {category}
As isTags, sticky messages, embed above a ticket panelNothing is replaced: {memberMention} shows as typed

Where you can write them

Variables are replaced in the title, the description, the author, the footer text, and the name and value of each field. They are not replaced in links (title URL, images, icons) or the colour.

In the welcome and leave messages

Variable Replaced with
{memberUsername} The member's username
{memberMention} A mention of the member
{memberCount} The number of members in the server
{guildName} The server's name
{createdAt} The date the member's account was created
{accountCreationTimestamp} How long ago the account was created, for example "2 years ago"
{inviterUsername} The name of the person who invited the member
{inviterMention} A mention of the person who invited the member
{invitesCount} How many invites that person now has

These are the variables of the Welcomer's text message (see /guildconfig set welcomer): the embed and the text are filled the same way. The inviter variables need the Invite Manager to know who invited the member. When the inviter isn't found, {inviterUsername} and {inviterMention} become "Unknown" in the server's language, and {invitesCount} becomes 0.

In the embeds inside a ticket

The embed posted in a new ticket (Change ticket channel embed, or the embed of the chosen option) knows the member who opened the ticket:

Variable Replaced with
{memberUsername} The username of the member who opened the ticket
{memberMention} A mention of that member
{memberCount} The number of members in the server
{guildName} The server's name
{createdAt} The date that member's account was created
{accountCreationTimestamp} How long ago that account was created
{category} The name of the option the member picked in an Advanced panel (empty in a Simple panel)

The ticket editor reminds you about {category} when you set the ticket channel embed. The embed above the panel is posted once, when nobody has opened anything yet: it has no variables.

One embed, two features

The same embed can serve as a welcome message and as a ticket greeting: {memberMention} and {guildName} work in both. Keep {category} and the inviter variables out of an embed used by both: one of the two can't fill them in (in a ticket, the inviter variables show "Unknown" and 0).

Tags and sticky messages

Tags and sticky messages post the embed exactly as saved. Write the final text; for a tag, put a mention in the tag's text or in the mention option of /tag use instead.

Mentions in an embed never ping

A mention inside an embed is displayed as a mention, but Discord doesn't notify anyone for it.

Next