-
-
Notifications
You must be signed in to change notification settings - Fork 1
Placeholders
Kotz edited this page Jun 15, 2022
·
3 revisions
Placeholders are predefined snippets of text enclosed within curly brackets {} that can be used to make your messages dynamic or more friendly. Most commands that accept user text input, such as !say and !greetmessage, support it. Some placeholders are exclusive to specific commands because they don't make sense elsewhere.
Note: placeholders that result in mentions will not work within an embed author field, title, field titles, and footer. This is a Discord limitation.
| Placeholder | Description |
|---|---|
{bot.id} |
The bot's ID |
{bot.name} |
The bot's username |
{bot.discrim} |
The bot's discriminator |
{bot.fullname} |
The bot's full name |
{bot.mention} |
The bot's mention |
{bot.creationdate} |
The date the bot was created |
{bot.avatar} |
The bot's avatar |
{bot.status} |
The bot's connection status |
{bot.prefix} |
The global prefix |
{bot.latency} |
The bot's latency |
{bot.shard} |
The bot shard in the current channel |
{bot.shardcount} |
The total amount of bot shards currently online |
{bot.servercount} |
The amount of servers the current shard is running on |
{bot.servertotal} |
The amount of servers the bot is currently in |
{bot.usercount} |
The amount of users the bot can see across all servers |
| Placeholder | Description |
|---|---|
{server.id} |
The ID of the current server |
{server.name} |
The name of the current server |
{server.members} |
The amount of users in the current server |
{server.avatar} |
The server's icon |
{server.banner} |
The server's banner |
{server.splash} |
The server's splash |
{server.discoverysplash} |
The server's discovery splash |
{server.creationdate} |
The date the current server was created |
{server.boosters} |
The amount of nitro boosts the current server has |
{server.boostlevel} |
The boost level of the current server |
{server.defaultchannel} |
A mention to the server's default channel |
{server.prefix} |
The prefix used in the current server |
{p} |
The prefix used in the current server |
| Placeholder | Description |
|---|---|
{channel.id} |
The ID of the current channel |
{channel.name} |
The name of the current channel |
{channel.mention} |
A mention to the current channel |
{channel.topic} |
The topic in the current channel |
{channel.creationdate} |
The date the current channel was created |
{channel.nsfw} |
Whether the current channel is set as NSFW |
{channel.category} |
Get the name of the category the current channel belongs to |
{channel.position} |
Gets the position of the current channel |
{channel.slowmode} |
Gets the slowmode time of the current channel, in seconds |
{channel.visibleto} |
Gets the amount of users that can see this channel |
| Placeholder | Description |
|---|---|
{user.id} |
The ID of the current user |
{user.name} |
The name of the current user |
{user.discrim} |
The discriminator of the current user |
{user.fullname} |
The full name of the current user |
{user.nickname} |
The nickname of the current user |
{user.mention} |
A mention to the current user |
{user.avatar} |
The avatar of the current user |
{user.creationdate} |
The date the account of the current user was created |
{user.joindate} |
The date the current user joined the current server |
{user.joindifference} |
The difference between the current user's join date and creation date |
{user.badges} |
The badges of the current user |
{user.hierarchy} |
The hierarchical position of the current user |
{user.color} |
The color of the current user |
{user.nitrodate} |
The date the current user started boosting the current server |
{user.nitrotype} |
The type of nitro of the current user |
{user.roles} |
The roles of the current user |
{user.voicechat} |
The name of the voice channel the user is currently connected to |
| Placeholder | Description |
|---|---|
{datenow.shortdateandtime} |
Current time in a short date and time format |
{datenow.shortdate} |
Current time in a short date format |
{datenow.shorttime} |
Current time in a short time format |
{datenow.longdateandtime} |
Current time in a long date and time format |
{datenow.longdate} |
Current time in a long date format |
{datenow.longtime} |
Current time in a long time format |
{datenow.relativetime} |
Current time in a relative time format |
| Placeholder | Description |
|---|---|
{ban.mod} |
The full name of the user who issued the ban |
{ban.user} |
The full name of the user who got banned |
{ban.reason} |
The reason of the ban |
| Placeholder | Description |
|---|---|
{rng} |
A random number between 0 and 2147483647 |
{cmd.argument} |
The arguments of the current command |
{remaining.text} |
Returns anything written after this placeholder |
| Placeholder | Description | Argument |
|---|---|---|
{date.shortdateandtime(x)} |
The specified time in short date and time format | x: Unix time in seconds |
{date.shortdate(x)} |
The specified time in short date format | x: Unix time in seconds |
{date.shorttime(x)} |
The specified time in short time format | x: Unix time in seconds |
{date.longdateandtime(x)} |
The specified time in long date and time format | x: Unix time in seconds |
{date.longdate(x)} |
The specified time in long date format | x: Unix time in seconds |
{date.longtime(x)} |
The specified time in long time format | x: Unix time in seconds |
{date.relativetime(x)} |
The specified time in relative time format | x: Unix time in seconds |
| Placeholder | Description | Arguments |
|---|---|---|
{rng(x)} |
A random number between 0 and x | x: A 32-bit integer |
{rng(x, y)} |
A random number between x and y | x and y: 32-bit integers |
{choose(x, y, z)} |
Picks a random element from the given selection. Supports multiple arguments. | Anything |
{cmd.argument(x)} |
The xth argument of the current command | x: A 32-bit integer |
{hash(x)} |
The numeric hash of x. | x: Text |