Interaction & Default Variables

This is the list of basic variables that are supported at BotWiz.

Basic variables consist of regular/most commonly used variables such as: {interaction} or {channel}. These are usable with any event or command interaction.

Below you can find a full list of basic variables.

Variable
Use Case

{interaction}

Returns the interaction object for the command, button or select menu trigger. This includes the Member, User, Channel, and Guild objects.

circle-exclamation

Interaction Examples

You can find the full list of member properties herearrow-up-right.

Variable
Example
Use case

[member.displayName]

Jamie

Returns the user's displayName in the server the interaction was used in.

[member.id]

718039190935306351

Returns the ID of the user who used the interaction.

circle-info

To use properties within the Interaction variable you will need to use the following format:

{interaction[]}

Default Variable Examples

These variables allow quick access to Discord objects. It returns the complete Discord object, with the exception of the {bot} variable, which has been modified to exclude the token for security purposes.

circle-info

Each variable also gives you the option to target a specific object, not just the default object. An example of how to get a members display name would be:

{member[MEMBER_ID][displayName]}
circle-exclamation
Variable
Default Return
Allows Target ID
Requires ID

{user}

The user mention of the executor of that command or event. <@USER_ID>

{member}

The member mention of the executor of that command or event. <@MEMBER_ID>

{guild}

The guild name of the guild that the event or command was executed in.

{channel}

The channel mention of the channel that the event or command was executed in. <#CHANNEL_ID>

{bot}

The bot id of your bot.

{role[ROLE_ID]}

The role id of a specified role in the guild the command or event was executed in.

Last updated