Base component

component

Used for creating a component, which contains additional values from the used component.

Can be either a Button, Select menu, or a Text input.

Schema fields #

Key Type Description
component String The type of the component.

Values from the used schema must be included, like so:

component = {
    'component' -> 'button',
    'id' -> 'blurple_button',
    'style' -> 'primary',
    'label' -> 'Blurple button',
    'emoji' -> '🚪'
},

Component types#

String Description
button Button
string_select Select an item
user_select Select a user
role_select Select a role
mentionable_select Select a user/role
channel_select Select a channel
text_input Text input