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.

When using the {interaction} variable, please note that every button, select menu and modal click will change the value of the variable. This results in the interaction data being overwritten with new data for the newly created interaction.

Interaction Examples

You can find the full list of member properties here.

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.

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.

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]}

All variables have an optional ID option, except for the role variable.

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