Interactive Components (Buttons, Select Menus, Modals)

Technical architecture of Discord's ButtonBuilder, StringSelectMenuBuilder, and ModalBuilder components.

Documentation / Resources / Scripting / Components

  1. 1. Buttons (ButtonBuilder)

    Clickable buttons and customId definitions.

    new ButtonBuilder().setCustomId('btn_onay').setStyle(ButtonStyle.Success)
  2. 2. Select Menus (StringSelectMenuBuilder)

    Let them choose up to 25 roles or categories at once.

    new StringSelectMenuBuilder().setCustomId('menu_rol')
  3. 3. Modal Windows (ModalBuilder)

    Collect name, age, or support forms via pop-up windows.

    new ModalBuilder().setTitle('Registration Form')

The Aegis bot fully supports all of Discord's interactive tools to move user interactions from the command line to visual components.

Component Types and Properties

Buttons:
5 different color styles, custom emojis and click event listeners.
StringSelectMenu:
Dropdown menus with single or multiple selection options.
TextInput / Modal:
Pop-up form windows that provide short or multi-line text input.