views.embed_builder module

Views for embed builder interface

class views.embed_builder.EmbedBuilderView(timeout=300, embed_data=None, macro_name='', callback_func=None)[source]

Bases: View

View for building embeds with multiple options

__init__(timeout=300, embed_data=None, macro_name='', callback_func=None)[source]
create_preview_embed()[source]

Create a preview embed from current data

Return type:

Embed

async update_preview(interaction)[source]

Update the embed preview

async edit_basic_info(interaction, _button)[source]

Edit basic embed information

async add_field(interaction, _button)[source]

Add a custom field to the embed

async clear_fields(interaction, _button)[source]

Clear all custom fields

async save_macro(interaction, _button)[source]

Save the embed macro

async cancel(interaction, _button)[source]

Cancel embed creation

async on_timeout()[source]

Handle view timeout