Skip to content

Commit

Permalink
Clearly define button max label length (#1757)
Browse files Browse the repository at this point in the history
  • Loading branch information
UP929312 committed Nov 4, 2022
1 parent b98b24b commit 20bed13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/ui/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Button(Item[V]):
disabled: :class:`bool`
Whether the button is disabled or not.
label: Optional[:class:`str`]
The label of the button, if any.
The label of the button, if any. Maximum of 80 chars.
emoji: Optional[Union[:class:`.PartialEmoji`, :class:`.Emoji`, :class:`str`]]
The emoji of the button, if available.
row: Optional[:class:`int`]
Expand Down

0 comments on commit 20bed13

Please sign in to comment.