python

Python views for things like PEP embeds.

Discord UI views used in Python commands.

class byte_bot.byte.views.python.PEPView(author: int, bot: Bot, original_embed: Embed, minified_embed: Embed, *args, **kwargs)[source]

Bases: BaseEmbedView

View for the Python PEP embed.

Initialize the view.

Parameters:
  • author – Author ID.

  • bot – Bot object.

  • original_embed – The original embed to display.

  • minified_embed – The minified embed to display.

  • *args – Variable length argument list.

  • **kwargs – Arbitrary keyword arguments.