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.
{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.
[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.
You can find the full list of channel properties here.
[channel.parentId]
1161086203890778192
Returns the category ID of the channel the interaction was used in.
[channel.name]
💬┃general
Returns the channel name that the interaction was used in.
[channel.id]
1161086224690315365
Returns the channel ID that the interaction was used in.
You can find the full list of Guild properties here.
[guild.name]
BotWiz.dev
Returns the name of the server that the interaction was used in.
[guild.createdAt]
Mon Jul 08 2024 12:35:06 GMT+0000 (Coordinated Universal Time)
Returns the date the server was created at.
[guild.id]
856011486077255690
Returns the ID of the server where the interaction was used.
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.
All variables have an optional ID option, except for the role variable.
{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
Was this helpful?