Components¶
- class quant.Button(custom_id: str | None = None, label: str | None = None, style: ButtonStyle = ButtonStyle.PRIMARY, emoji: Emoji | str | None = None, url: str | None = None, disabled: bool = False)¶
Bases:
CallbackBackend[ButtonContext]Represents a discord button
Parameters¶
- custom_id:
str | None Button custom ID
- style:
ButtonStyle Discord button style, default PRIMARY
- label:
str Button label
- emoji:
Emoji | None Button emoji
- url:
str | None Button redirect url
- disabled:
bool Set/check is button disabled
- custom_id:
- class quant.TextInputStyle(value)¶
Bases:
EnumDiscord text input style
Attributes¶
- SHORT:
Small text input
- PARAGRAPH:
Big text input
- class quant.TextInput(*, type: int = 4, custom_id: str, style: TextInputStyle = TextInputStyle.SHORT, label: str | None, min_length: int = 0, max_length: int = 4000, required: bool = True, value: str | None = None, placeholder: str | None = None)¶
Bases:
objectRepresents a discord text input
Parameters¶