Skip to content

User & Member Context

The User Transformer ({user}, {author})

Provides user information for the message sender.

Attributes Table

PropertyTypeDescriptionRaw Example
{user} / {user.mention}stringFormatted mention string<@456130838183280651>
{user.id}stringDiscord Snowflake User ID456130838183280651
{user.username}stringUser’s Discord account usernameerrordoc404
{user.tag}stringUsername with legacy discriminator or tagerrordoc404#0
{user.avatar}stringUser’s avatar image URLhttps://cdn.discordapp.com/...
{user.displayAvatar}stringDisplay avatar (server or global)https://cdn.discordapp.com/...
{user.bot}booleantrue if the account is a Discord botfalse
{user.createdAt}stringISO 8601 account creation date2018-06-15T12:00:00.000Z

The Member Transformer ({member}, {target})

Provides guild-specific member properties (roles, permissions, nicknames, and role colors).

Attributes Table

PropertyTypeDescriptionRaw Example
{member.displayName}stringNickname or global display nameBhaukal πŸ‘‘
{member.nickname}stringServer-specific nicknameBhaukal πŸ‘‘
{member.color}stringHex string of highest colored role#5865F2
{member.roles}stringComma-separated list of role namesAdmin, DJ, VIP
{member.joinedTimestamp}numberServer join timestamp in ms1672531199000
{member.premiumSince}stringServer boosting date or empty string2023-01-01

Example Usage

User Profile Card

{embed(title):πŸ‘€ Member Profile: {user.username}}
{embed(thumbnail):{user.avatar}}
{embed(field):Account ID~{user.id}~true}
{embed(field):Nickname~{member.displayName}~true}
{embed(field):Roles~{member.roles}~false}
{embed(color):{member.color}}