✍️Placeholders

How it works?

When you have text inputs in actions or filters, you might want parts of text to be automatically filled with dynamic values. This is exactly what the placeholder system allows.

Typical example

You have created a behavior that sends a message that says "Hello everyone!" and you want to add in this message the number of members present on your server to have a result like this: "Hello everyone! Today we have 158 members on our server!" Well this is possible with the placeholder system! You just need to write this as a message in the configuration: "Hello everyone! Today we have {guild_member_count} members on our server!"

circle-exclamation

Format

All placeholders have the format {placeholder}.

List

Here is the list of all available placeholders.

Some placeholders can only work in certain contexts. For example, it is impossible to use the placeholder {event_channel} in the MEMBER_JOIN event because no channel is affected by the arrival of a new member.

Placeholders that do not depend on context

chevron-right{character}hashtag

The name of the character concerned.

A common usage is to do an AI_SEND_MESSAGE action and pre-prompt something like: "You are {character} so answer like him."

Return example: Bobby

chevron-right{guild_name}hashtag

The name of the server the bot is on. For example, this can be useful if you make a welcome message and often change the name of your server.

Return example: My super server

chevron-right{guild_member_count}hashtag

Gives the total number of members present on your server.

Return example: 158

chevron-right{guild_boost_count}hashtag

Gives the total number of current boosts on your server.

Return example: 0

chevron-right{guild_boost_tier}hashtag

Gives the boost-tier of your server.

Return example:

  • 0

  • 1

chevron-right{guild_icon}hashtag

Gives the link to your server icon.

chevron-right{guild_banner}hashtag

Gives the link to your server banner.

chevron-right{guild_channel_count}hashtag

Gives the total number of current channels on your server.

Return example: 12

chevron-right{guild_role_count}hashtag

Gives the total number of current roles on your server.

Return example: 5

chevron-right{guild_owner}hashtag

Gives the name of the server owner.

Return example: <@239418288617160715>

Placeholders that depend on the context:

chevron-right{event_message}hashtag

Gives the message context, usually when you use the MESSAGE event. The return only keeps the formatting but not the mentions.

Return example: Hello everyone! Whizyyy

chevron-right{event_message_raw}hashtag

Gives the message context, usually when you use the MESSAGE event. The return fully retains the mentions and format of the initial message.

Return example: Hello everyone! Whizyyy

chevron-right{event_message_stripped}hashtag

Gives the message context, usually when you use the MESSAGE event. The return only keeps the text. For example, it removes mentions and the ** for bold.

Return example: Hello everyone! Whizyyy

chevron-right{event_channel}hashtag

Give the mention of the channel concerned.

Return example: <@1144749550494564442>

chevron-right{event_channel_name}hashtag

Give the name of the channel concerned.

Return example: general

chevron-right{event_user}hashtag

Give the mention of the user concerned.

Return example: <@239418288617160715>

chevron-right{event_user_effective_name}hashtag

Give the global name of the user concerned.

Return example: Darkkraft

chevron-right{event_user_avatar}hashtag

Give the avatar of the user concerned.

chevron-right{event_user_default_avatar}hashtag

Give the default avatar of the user concerned.

chevron-right{event_member}hashtag

Give the mention of the member concerned.

Return example: <@239418288617160715>

chevron-right{event_member_nickname}hashtag

Give the nickname of the member concerned.

Return example: The administrator

chevron-right{event_member_effective_name}hashtag

Give the global name of the member concerned.

Return example: Darkkraft

chevron-right{event_member_avatar}hashtag

Give the avatar of the member concerned.

chevron-right{event_member_default_avatar}hashtag

Give the default avatar of the member concerned.

Parsing

If you want to test the return of placeholders, it's possible!

You can use the /placeholder parse command.

⚠️ Be careful, the {character} will not work because no character is associated.

Last updated