Discord Objects

Discord related default variables

User/Target

{user}
{target}

{user(name)}
{target(avatar)}

One of the most used blocks is the target block, it allows you to access other users data.

user is the user who invoked the tag, while target is the first user that was pinged in the commands arguments. If no one is pinged, target is equivalent to user.

Note

It’s common to check if someone was pinged in the command, to do this you compare user against target

{if({user(id)}=={target(id)}):You need to ping someone|You pinged {target}}

Parameters/Properties

Parameters can be specified within parenthesis after the block name: {user(PARAMETER)} or {user(PARAMETER)}. When used without a parameter ({user} or {target}), the block will output the nickname of the user/target.

Parameter

Output

avatar

A link to the user’s avatar

icon

Same as avatar

id

The user’s ID

mention

@’s/Mentions the user

created_at

Date and time that the account was created in the form of yyyy-mm-dd HH:MM:SS

joined_at

Date and time that the user joined this server in the form of yyyy-mm-dd HH:MM:SS

color

The user’s hexadecimal role color with the leading # included

name

The user’s discord username

proper

The user’s username + discriminator/tag, example _Leg3ndary#5759

roleids

A list of every role (id) the user has from lowest to highest separated by a space

position

The user’s position in the role hierarchy, starts with 0 for @everyone and increases by 1 for each role in the server

Server

{server}

{server(roles)}

Contains details about the server

Parameters

Parameters can be specified within parenthesis after the block name: {server(PARAMETER)}. When used without a parameter ({server}), the block will output the server’s name.

Warning

Some of these are deprecated.

Parameter

Output

icon

A link to the server’s icon

id

The server’s ID

owner

The username + discriminator of the server owner

random

The username + discriminator of a random member

members

The number of members in the server

roles

The number of roles in the server

channels

The number of channels in the server

created_at

When the server was created in the format yyyy-mm-dd HH:MM:SS

[BROKEN] humans

The number of humans in the server. Currently returns the same as members.

[DEPRECATED] randomonline

The username + discriminator of a random online member

[DEPRECATED] randomoffline

The username + discriminator of a random offline member

[DEPRECATED] bots

The number of bots in the server

Channel

{channel}

{channel(topic)}

Contains details about the channel

Parameters

Parameters can be specified within parenthesis after the block name: {channel(PARAMETER)}. When used without a parameter ({channel}), the block will output the channel’s name.

Parameter

Output

id

The channel’s ID

topic

The channel’s topic

slowmode

The channel’s slowmode delay in seconds

position

The channel’s position, in the order of which channels were created, 0 being the first

mention

Clickable link to the channel