bundle.discord.cogs.music.controls ================================== .. py:module:: bundle.discord.cogs.music.controls .. autoapi-nested-parse:: Player control buttons -- discord.ui.View delegating to GuildPlayer. Classes ------- .. autoapisummary:: bundle.discord.cogs.music.controls.QueuePaginator bundle.discord.cogs.music.controls.PlayerControls Module Contents --------------- .. py:class:: QueuePaginator(embed_mgr: bundle.discord.cogs.music.embed.PlayerEmbed, *, timeout: float = 120) Bases: :py:obj:`discord.ui.View` Paginated queue browser with prev/next buttons. .. py:method:: btn_prev_page(interaction: discord.Interaction, button: discord.ui.Button) -> None :async: .. py:method:: btn_next_page(interaction: discord.Interaction, button: discord.ui.Button) -> None :async: .. py:class:: PlayerControls(cog: bundle.discord.cogs.music.MusicCog, guild_id: int) Bases: :py:obj:`discord.ui.View` Six-button control strip attached to the now-playing embed: prev, pause, skip, stop, shuffle, queue. .. py:attribute:: cog .. py:attribute:: guild_id .. py:method:: btn_prev(interaction: discord.Interaction, button: discord.ui.Button) -> None :async: .. py:method:: btn_pause(interaction: discord.Interaction, button: discord.ui.Button) -> None :async: .. py:method:: btn_skip(interaction: discord.Interaction, button: discord.ui.Button) -> None :async: .. py:method:: btn_stop(interaction: discord.Interaction, button: discord.ui.Button) -> None :async: .. py:method:: btn_shuffle(interaction: discord.Interaction, button: discord.ui.Button) -> None :async: .. py:method:: btn_queue(interaction: discord.Interaction, button: discord.ui.Button) -> None :async: