Skip to content

Support modal interactions #15

Description

@LukasDoesDev

Modal support would be really convenient. A basic struct for modals would be great.

#[derive(ModalDerive)]
#[modal(title="my modal's title", custom_id="this_will_be_used_in_the_parser_too"]
struct MyModal {
    // The fields will automatically get wrapped with actionrows maybe?
    #[modal_field(custom_id="foo", label="Foo", value=1_u8, type=select_menu)]
    my_modal_field: u8,
    #[modal_field(custom_id="bar", label="Bar", max_length=20, text_input_ style=short, type=text_input)]
    my_text_input_field: String
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions