components#
- class wyvern.models.components.ActionRow(*, components: list[wyvern.models.components.Component])[source]#
Bases:
Component
- class wyvern.models.components.Button(*, style: ButtonStyle, label: str | None = None, emoji: Any = None, custom_id: str | None = None, disabled: bool = False, url: str | None = None)[source]#
Bases:
ComponentRepresents a discord button. The properties mentioned below can be used to create a button.
- style: ButtonStyle#
Style of the button.
- class wyvern.models.components.ButtonStyle(value)[source]#
Bases:
IntEnumEnums for Button style.
- BLURPLE = 1#
Alias for PRIMARY
- DANGER = 4#
Red discord button.
- GRAY = 2#
Alias for SECONDARY
- GREEN = 3#
Alias for SUCCESS
- GREY = 2#
Alias for SECONDARY
- LINK = 5#
Button pointing to an URL
- PRIMARY = 1#
A primary blurple discord button.
- RED = 4#
Alias for DANGER
- SECONDARY = 2#
A secondary gray discord button.
- SUCCESS = 3#
Green discord button.
- URL = 5#
Alias for LINK
- class wyvern.models.components.Component[source]#
Bases:
ABCRepresents a discord component. Is the base class for other components.
- class wyvern.models.components.Modal(*, title: str, custom_id: str, text_inputs: list[wyvern.models.components.TextInput])[source]#
Bases:
objectRepresents a discord modal form.
- text_inputs: list[wyvern.models.components.TextInput]#
List of textinputs in the modal.
- final class wyvern.models.components.TextInput(*, custom_id: str, label: str, style: TextInputStyle, min_length: int | None = None, max_length: int | None = None, required: bool = True, default_value: str | None = None, placeholder: str | None = None)[source]#
Bases:
ComponentRepresents a modal text-input.
- style: TextInputStyle#
Textinput style.