BotWiz Documentation
DashboardSupport ServerResources
BotWiz Documentation
BotWiz Documentation
  • Welcome to BotWiz!
  • Support Server
  • Dashboard
    • Get Started
    • Settings
    • BotWiz Guides
  • Creations
    • Commands
      • Builder
    • Events
      • List of Discord Events
    • Variables
      • Interaction & Default Variables
      • Custom Variables
        • Bot Variables
      • Unique Variables
      • Function Variables
      • Advanced Variables
      • Event Variables
  • Misc
    • Debugging
    • Exports
  • Blocks
    • Actions
      • Message Actions
        • Modal / Form
        • Send & Edit a Message
        • Delete & Pin a Message
        • Start & End Poll
      • Role Actions
        • Removing & Adding a Role to Everyone
        • Edit a Role
      • Channel Actions
        • Create Channel
        • Edit Channel
        • Delete Channel
        • Purge Messages
      • Member Actions
        • Ban Member
        • Kick Member
        • Member Nickname
        • Timeout Member
        • Unban Member
      • Variable Actions
        • Calculate Variable
        • Delete Variable
        • Set Variable
      • Action Blocks
        • API
        • Create & Delete an Auto Mod Rule
        • Timed & Custom Event
    • Conditions
    • Options
Powered by GitBook
On this page
  • Interaction Examples
  • Default Variable Examples

Was this helpful?

  1. Creations
  2. Variables

Interaction & Default Variables

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

PreviousVariablesNextCustom Variables

Last updated 5 months ago

Was this helpful?

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.

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.

You can find the full list of channel properties .

Variable
Example
Use Case

[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 .

Variable
Example
Use Case

[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.

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.

here
here
here