-
Notifications
You must be signed in to change notification settings - Fork 0
Placeholders
Almost all placeholder are built around the concept of object, it's like a container.
For example a Player object contains property such as name, hp, x, y, z
.
We references these properties with a .
separator, for example: {player.name}
, {player.hp}
, {player.x}
, {player.y}
, {player.z}
.
It can also be nested, for example:
member
refers to a Guild Member in this instance.
Inside a guild member object will have a nickOrUsername
property (Nickname, or username of the user if none).
Then there's also a user
object that contains name, tag, id, avatarURL
.
It can be represented with json below:
"member": {
"nickOrUsername": "My Nickname",
"user": {
"username": "LX86",
"username": "@lx86",
"id": "204071499135582208",
"avatarURL": "https://link.to.avatar"
}
}
We can reference them with {member.user.username}, {member.user.tag}, {member.user.id}, {member.user.avatarURL}
.
-
name
- Name of the guild -
memberCount
- Member count of the server -
iconURL
- Guild Icon URL -
owner
- A Guild Member object of the server owner -
bannerURL
- Banner URL of the server, if any
-
name
- Channel name -
id
- Channel ID -
mention
- Mention tag of the channel, e.g. <@#ID> -
topic
- Topic of the channel
(Do not be confused with the User object below. A Guild Member object contains a User object, along with other guild-only property such as nickname)
-
nickOrUsername
- Nickname or member's username if no nickname -
user
- User object of this member
-
username
- The username of the Discord User -
displayName
- The display name of the Discord User -
tagOrUsername
- Username + discriminator (Name#0000), or return the @username if user are in the new username system. -
tagOrDisplayName
- Username + discriminator (Name#0000), or return the display name if user are in the new username system. -
id
- ID of the user -
avatarURL
- Avatar URL of the user
-
name
- File name of the attachment -
ext
- File extension of the attachment -
url
- Download URL of the file -
size
- File size of the file, formatted asX.XMB
-
content
- The text content of the message -
jumpURL
- The URL of this message, when clicked in a Discord Client it will jump to that message -
author
- The Guild Member object of the author of this message
-
totalPlayerCount
- Total player count of the server -
maxPlayerCount
- Maximum player count of the server -
version
- Minecraft version the server is on (e.g. 1.19.2)
-
name
- The name of the current world. EitherOverworld
,The Nether
,The End
, or the world ID if it's a custom dimension -
difficulty
- Difficulty of the current world -
time
- Time of day -
playerCount
- Number of player on the current world
-
name
- Player name -
ping
- Player's ping, in millisecond -
team
- A Team object of the player's team. -
gamemode
- Gamemode the player is in. EitherCreative
,Survival
,Adventure
orSpectator
-
x
- The X coordinate of the player -
y
- The Y coordinate of the player -
z
- The Z coordinate of the player -
hp
- The HP of the player. (20 is full) -
heart
- The heart of the player (10 is full)
-
name
- Name of the team (Empty string if none) -
prefix
- Prefix of the team (Empty string if none) -
suffix
- Suffix of the team (Empty string if none) -
displayName
- Display Name of the team (Empty string if none)