Abyssal
Home
Tools
Docs
Support
Dashboard
# Variables Variables are placeholders you put in messages that the bot replaces with real data at send time. They work the same way everywhere: welcome messages, custom events, formats, custom commands and more. ## Using variables Type a variable into any message editor, or click the variable browser button to search everything available for that specific message. Variables render highlighted in previews, so you can see exactly what will be replaced before saving. - Variables are case sensitive: {user} works, {User} does not. - Some variables are only available in certain contexts. For example, {message.content} only exists on message events. The browser shows availability notes like "where presence data is available". - Dotted paths go deeper: {user.name} is the member's display name, {user.id} is their ID. ## The namespaces Variables are grouped into normalized namespaces, so the same name means the same thing everywhere: - **guild**: server details, like {guild.name}, {guild.id}, {guild.owner.name} and {guild.icon.url}. - **count**: live counts, like {count.members}, {count.members.human}, {count.members.bot} and {count.channels}. - **user** and **member**: the person involved, like {user.name}, {user.tag}, {user.avatar.url}, {member.joinedAt} and account dates. - **channel**, **role**, **thread**: the channels, roles and threads involved, with names, IDs and mentions. - **message**: the message that triggered an event, like {message.content} and {message.url}. - **voice**: voice state details. - **invite**: the invite used to join, like {invite.code} and {invite.uses}. - **boost**: boost related data. - **moderation**: punishment details, like the reason, duration and case id. - **time**: formatted times and timestamps. - **bot**: bot info like ping and uptime. - **emoji**, **sticker**, **reaction**, **attachment**: the assets involved in an event. - **deleter**, **audit**, **webhook**: who performed an action and the audit log details behind it. - **application**: application submission details, like answers and reviewer data. - **counting**: counting event details, like {counting.number} and {counting.reason}. - **milestone**: invite milestone details, like {milestone.invites}. - **staff**: staff actions, like {staff.rank} and {staff.reason}. There are also **self.* variables** for referencing the bot's own configured settings in formats, and {time} style helpers for formatted timestamps. ## Examples A welcome message: > Welcome {user.mention} to **{guild.name}**! You are member #{count.members}. A leave message with attribution: > {user.name} left. Invited by {inviter.name}. A counting milestone announcement: > {user.mention} just counted {counting.number}! Total correct: {counting.total}. If a variable cannot be resolved when the message is sent, it is left as written so you can spot the mistake in Discord.