Skip to content

yuyo.to_builder#

Utility functions for converting Hikari data modals to builders.

to_button_builder #

to_button_builder(button)

Convert a button component to a builder.

Parameters:

  • button (ButtonComponent) –

    The button component to convert to a builder.

Returns:

to_channel_select_menu_builder #

to_channel_select_menu_builder(select_menu)

Convert a channel select menu component to a builder.

Parameters:

Returns:

to_cmd_builder #

to_cmd_builder(cmd)

Convert a partial command to a command builder.

Parameters:

Returns:

  • CommandBuilder

    The command builder.

    This will always be a subclass.

Raises:

to_context_menu_builder #

to_context_menu_builder(cmd)

Convert a context menu command to a builder.

Parameters:

Returns:

to_msg_action_row_builder #

to_msg_action_row_builder(action_row)

Convert a message action row component to a builder.

Parameters:

Returns:

Raises:

to_select_menu_builder #

to_select_menu_builder(select_menu)

Convert a select menu component to a builder.

Parameters:

Returns:

to_slash_cmd_builder #

to_slash_cmd_builder(cmd)

Convert a slash command to a builder.

Parameters:

  • cmd (SlashCommand) –

    The command to convert to a builder.

Returns:

to_text_select_menu_builder #

to_text_select_menu_builder(select_menu)

Convert a text select menu component to a builder.

Parameters:

Returns: