commands.macro_commands module

class commands.macro_commands.MacroListView(macros, guild_name, bot, items_per_page=50)[source]

Bases: View

A paginated view for displaying macro lists

__init__(macros, guild_name, bot, items_per_page=50)[source]
create_embed()[source]

Create the embed for the current page

Return type:

tuple[Embed, File | None]

async on_timeout()[source]

Called when the view times out

async commands.macro_commands.send_embed_response(interaction, embed, logo_file, ephemeral=True)[source]

Helper function to send embed response with optional file attachment

commands.macro_commands.setup_macro_commands(bot)[source]

Setup all macro-related slash commands