variables - placeholders & functions
you can escape a placeholder or function via a backslash
\
before your placeholder. this way, the placeholder will not replace (e.g.\{user}
).
✎ placeholder list
a bit confused on what a placeholder is? check out our beginner guide on using simple placeholders.
♪ user / author information
advanced usage: user information can all be extended into a function to swap the user target of the information. for example,
{user_balance:395526710101278721}
would provide balance of that specific user id.this means that
{user_balance:[$1]}
can provide the user balance of the first argument. for more information, read advanced ii: using user arguments in placeholders.
variable | example | description |
| @iara | the user's @mention |
| iara | the user's username |
| iara | the user's username |
| the user's avatar | |
| 0 | the user's discriminator |
| 395526710101278721 | the user's id |
| iara c: | the member's nickname in the server, if applicable |
| Wed, Aug 15, 2018 2:32 AM | the date of when the member joined the server |
| Wed, Dec 27, 2017 10:41 AM | the date of when the user joined discord |
| #ffdfdf | the member's hex color when chatting |
| Wed, Mar 17, 2021 7:13 PM | the date the member has been boosting the server since (if they're not a booster, it'll say "Not a Booster") |
| 21983 | the member's balance |
| 21,983 | the member's balance but with locale (comma separator) |
|
| shows the user's quantity & name of a specified item |
|
| shows the quantity of a specified item |
| 1 × apple 2 × banana | shows the user's entire inventory |
♪ server general information
variable | example | description |
| = m i m u = | the server's name |
| 479115079338557469 | the server's id |
| 407 | the server's member count |
| 203rd | the ordinal number of the member count |
| 400 | the server's member count, but without bots* |
| 309th | the ordinal number of the server's member count without bots* |
| 7 | the server's bot count* |
| 2nd | the ordinal number of the server's bot count* |
| the server's icon | |
| 40 | the server's role count |
| 20 | the server's channel count (includes all types of channels) |
| @iara | the @mention of a random member of your server** |
| iara | the user |
| @iara | the @mention of a random member (that is not a bot) of your server** |
| @iara | the @mention of the server owner |
| 395526710101278721 | the user id of the server owner |
| Wed, Dec 27, 2017 10:41 AM | the date the server was created on |
* = due to discord's constraints with intents, the numbers of bots / without bots can be unreliable since october 2020. this is a result of not being able to cache every bot without caching all members in your server. servers with premium are equipped with premium caching to bypass these restraints.
** = due to discord's constraints with intents, random member variables only consists of cached members (usually members who are active in your chat). servers with premium are equipped with premium caching to bypass these restraints.
♪ server boost information
variable | example | description |
| 2 | the boost level, from 0 to 3, of the server |
| 7 | the number of boosts the server has |
| 3 | the boost level the server is heading towards.* |
| 14 | the number of boosts needed in total to reach the next boost level.* |
| 7 | the number of boosts the server needs in order to reach the next boost level* |
* = returns "Max Level Reached" if it's already at level 3.
♪ server settings' information
variable | example | description |
| / | the server's prefix -- globally, mimu uses slash (/) commands, so this variable will always return "/" |
| 🍪 | the server's currency |
♪ channel information
variable | example | description |
| #general | the mention of the channel |
| media | the name of the channel |
| Sun, Dec 27, 2020 3:11 AM | the date of when the channel was created |
♪ message information
variable | example | description |
| 8832493284932843t | the id of the message that triggered the autoresponder |
| hi! i'm new! | the content of the message that triggered the autoresponder.
pro-tip! it's the same as |
| the link to the message that triggered the autoresponder. |
♪ misc
variable | example | description |
| Tue, April 27, 2021 10:41 AM | the date, now. |
| text line one text line two | adds a new line. note: this only works with |
♪ advanced placeholders
there are no examples for these because this depends on either user input, or something else, and could simply be anything.
there are no examples for these because this depends on either user input, or defined elsewhere in your autoresponder. this can be simply anything.
for information on using this, please view intermediate guides on ranges and making choices, locked choices, as well as advanced guides on different matchmodes and using user arguments.
variable | description |
| the range response made from the range in the {range:} function. |
| the choice made from the chosen list in the |
| the corresponding locked choice made from |
| the Nth argument/word used to trigger the autoresponder send by the user. only applicable for modes of autoresponder that is not |
| the Nth word and words after that was used to trigger the autoresponder send by the user. only applicable for modes of autoresponder that is not |
| the Nth to Zth words / arguments used to trigger the autoresponder send by the user. only applicable for modes of autoresponder that is not |
✎ function list
completely lost? check out our beginner guide on using simple functions.
♪ formatting and redirecting
variable | usage | description |
|
| redirects the response to be in dms. |
|
| redirects the response to the channel specified. by default, it is the channel the autoresponder is invoked in. |
|
| turns the reply to an embed. if input is provided, then you can put in a hex color, or a premade custom embed from the |
♪ auto-deletions
variable | usage | description |
|
| delete's the triggering message to the autoresponder |
|
| deletes the bot's reply after a given number of seconds. |
♪ limit autoresponder permission
you can enable this to multiple users / permissions / roles / channels etc. by putting multiple function variables in your autoresponder.
variable | usage | description |
|
| limit the autoresponder to only respond to a specified user. |
|
| limit the autoresponder to only respond if they have specified permission |
|
| limit the autoresponder to only respond if it's ran in specified channel |
|
| limit the autoresponder to only respond if the user has the specified role if the user does not have the specified role, it replies stating that they need specific roles |
|
| ignores the autoresponder trigger when run in the specified channel |
|
| ignores the autoresponder trigger when the user has the specified permission |
|
| ignores the autoresponder trigger when the user has the specified role |
|
| requires the user’s balance to be at least the specified amount. |
|
| requires an item in the user's inventory with the option to require an amount of an item as well as a user if using the optional user argument in the variable, you can only check/require up to 3 users' inventories. |
♪ misc
variable | usage | description |
|
| adds, removes, sets, divides, or multiplies from user balance. can only change by up to ±100,000 at once, and only 3 users at once. supports the following simple math functions:
can change balance from other users too, if you add the optional argument "user" after the pipe |. |
|
| adds or removes a specified amount of an inventory item from a user's
|
|
| sets a cooldown for the autoresponder to be ran in, in seconds. |
|
| adds role to the user. optionally, you can add roles to other users, too, if you add the optional argument "user" after the pipe |. |
|
| removes role from the user. optionally, you can remove roles to other users, too, if you add the optional argument "user" after the pipe |. |
|
| edits the user’s nickname in the server. optionally, you can change other users’ nicknames, too, if you add the optional argument “user” after the pipe | |
|
| reacts the emoji to the triggering message to the autoresponder |
|
| reacts the emoji to the bot reply |
|
| adds a button to the desired trigger (ie. greet / leave / boost, autoresponders) |
♪ advanced functions
using these functions can be pretty difficult! read up on our intermediate section on ranges and making choices, as well as locked choices, to fully understand. for using arguments, read the advanced ii: using user arguments guide.
variable | description |
| chooses a value between a minimum and maximum, separated with |
| chooses from a provided list of choices that are separated by the pipe | symbol. supports up to 4 choices, |
| "locks" or "forces" a choice to happen based on a corresponding
you can reference these in your autoresponder via |
| requires an argument to be specified so you can refer to them properly in the optionally takes an input type after the pipe | symbol, which forces the user to follow that type, e.g. |
Last updated