For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configure style & format

Choose how the translations look, and write your own message format.

The style decides how a translation is posted. The format lets you rewrite its content with your own text and variables. Both work exactly like in Automatic-Translation.

Style

Three styles are available.

A regular message sent by iTranslator.

A translation in the Text style

A translation inside an embed.

A translation in the Embed style

A message that takes the name and the avatar of the original author, as if they had written it themselves.

A translation in the Webhook style

Change the style

On the Role-Translation page of the dashboard, click Edit on your configuration and choose the Message Style.

Run /translaterole config style:

The /translaterole config style command

Format

This feature requires Premium.

Once you have a style, you can change what it contains: add the name of the author, a link to the original message, the flag of the language, and so on.

Click Edit on your configuration and turn on Use Custom Message Format. The fields depend on the style of the configuration.

Run /translaterole config format. A form opens with the fields of the current style:

The /translaterole config format command

Fill in the fields, then click Submit.

Style
Fields you can customize

Text

Message

Embed

Title, Description, Thumbnail URL, Footer, Color

Webhook

Username, Content, Avatar URL

Variables you can use everywhere in formats

Variables are replaced by their value each time a translation is sent.

Variable
Description

{translation}

Translated text.

{original_message}

Content of the original message.

{original_message_link}

Jump URL to the original message.

{source_language}

Source language of the translation.

{language}

Target language of the translation.

{source_language_flag}

Flag emoji(s) of the source language of the translation.

{language_flag}

Flag emoji(s) of the target language of the translation.

{billed}

Cost of the translation (in billing).

{source_channel}

Mention of the source channel.

{source_channel_name}

Name of the source channel.

{user}

Mention of the message author.

{user_name}

Effective name of the message author.

{user_avatar}

URL of the message author's avatar.

{user_role}

Name of the highest role of the user.

{user_role_mention}

Mention of the highest role of the user.

{member}

Mention of the server member (if available).

{member_name}

Effective name of the server member (if available).

{member_avatar}

URL of the server member's avatar (if available).

{guild_member_count}

Total number of members in the server.

{guild_boost_count}

Number of server boosts.

{guild_boost_tier}

Server boost level.

{guild_icon}

URL of the server icon.

{guild_banner}

URL of the server banner.

{guild_channel_count}

Total number of channels in the server.

{guild_role_count}

Total number of roles in the server.

{guild_owner}

Mention of the server owner (if available).

Is a variable missing? Ask us to add it on our Discord Support.

Last updated