Skip to main content
MayaBotDocs

Placeholders

All the placeholders in MayaBot messages and the modules they work in.

A placeholder is a word between two %, such as %server%, that MayaBot replaces with a value when it sends the message. It's written all in lower case. A placeholder that doesn't exist, or doesn't work in that module, stays written as it is.

Typing % in a field shows suggestions: arrow keys to choose, Enter or Tab to insert, Esc to close. The Variables list in each panel shows the available ones, with a button to copy them.

List

PlaceholderBecomesExample
%mention%Member mention@Mario
%username%Usernamemario_99
%displayname%Display name in the server, otherwise global name, otherwise usernameSuper Mario
%userid%User ID123456789012345678
%avatar%Avatar linkhttps://cdn.discordapp.com/...
%createdat%Account creation date3 March 2021
%server%Server nameMy server
%serverid%Server ID987654321098765432
%servericon%Server icon linkhttps://cdn.discordapp.com/...
%membercount%Member count128
%count%Last valid Counting number41
%next%Next number to write42
%best%Counting channel record57
%channel%Counting channel mention#counting
%channelid%Counting channel ID112233445566778899
%kicks_here%People caught by the Honeypot in this server12
%kicks_all%People caught by the Honeypot across all servers with MayaBot3450

Where they work

ModulePlaceholders
Automatic messageServer ones: %server%, %serverid%, %servericon%, %membercount%
Welcome and LeavesMember and server ones
VerificationServer ones
Honeypot%kicks_here%, %kicks_all% and the server ones
CountingMember, counting (%count%, %next%, %best%, %channel%, %channelid%) and server ones
Temporary channel, channel name%username%, %displayname%, %userid%, %createdat%, %server%, %serverid%, %membercount%
Temporary channel, message with the buttonServer ones

The member placeholders are %mention%, %username%, %displayname%, %userid%, %avatar% and %createdat%.

Useful rules

  • Image fields: %avatar% and %servericon% on their own work as an image link, for example in the thumbnail or the author icon of an embed. They don't work as button links.
  • Inside a link: the other placeholders go into the link in a safe form, with spaces and symbols converted.
  • Names with symbols: in %username% and %displayname% characters such as * and _ stay as written and don't change the message formatting.
  • Dates: in messages %createdat% uses Discord's date format, which everyone sees in their own language and time zone. In the Welcome card and in temporary channel names it becomes DD/MM/YYYY.
  • Notifications: %mention% only notifies the member in the Welcome channel message with Notify the new member, and in the Counting Mistake and New record messages.
  • Length: character limits are counted on the text you write. If after replacement the message goes over Discord's limits, MayaBot shortens it.
  • Preview: in the dashboard the placeholders use your account and your server as an example, and 128 as the member count.

On this page