aboutsummaryrefslogtreecommitdiff
path: root/discord/ui/button.py
diff options
context:
space:
mode:
authorJosh <[email protected]>2021-06-28 13:43:49 +1000
committerGitHub <[email protected]>2021-06-27 23:43:49 -0400
commit233d10649c8bc39f1ecc2be83df547f3ad6a3f84 (patch)
treee5353b7407415762065654b229543bd5c0773096 /discord/ui/button.py
parentremove repeat 'to' in Task.restart doc (diff)
downloaddiscord.py-233d10649c8bc39f1ecc2be83df547f3ad6a3f84.tar.xz
discord.py-233d10649c8bc39f1ecc2be83df547f3ad6a3f84.zip
[docs] Update Sphinx and Fix various references
Co-Authored-By: Riley Shaw <[email protected]>
Diffstat (limited to 'discord/ui/button.py')
-rw-r--r--discord/ui/button.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/discord/ui/button.py b/discord/ui/button.py
index 741b262c..e5dc8a96 100644
--- a/discord/ui/button.py
+++ b/discord/ui/button.py
@@ -65,7 +65,7 @@ class Button(Item[V]):
Whether the button is disabled or not.
label: Optional[:class:`str`]
The label of the button, if any.
- emoji: Optional[Union[:class:`PartialEmoji`, :class:`Emoji`, :class:`str`]]
+ emoji: Optional[Union[:class:`.PartialEmoji`, :class:`.Emoji`, :class:`str`]]
The emoji of the button, if available.
row: Optional[:class:`int`]
The relative row this button belongs to. A Discord component can only have 5
@@ -180,7 +180,7 @@ class Button(Item[V]):
@property
def emoji(self) -> Optional[PartialEmoji]:
- """Optional[:class:`PartialEmoji`]: The emoji of the button, if available."""
+ """Optional[:class:`.PartialEmoji`]: The emoji of the button, if available."""
return self._underlying.emoji
@emoji.setter
@@ -251,13 +251,13 @@ def button(
custom_id: Optional[:class:`str`]
The ID of the button that gets received during an interaction.
It is recommended not to set this parameter to prevent conflicts.
- style: :class:`ButtonStyle`
- The style of the button. Defaults to :attr:`ButtonStyle.grey`.
+ style: :class:`.ButtonStyle`
+ The style of the button. Defaults to :attr:`.ButtonStyle.grey`.
disabled: :class:`bool`
Whether the button is disabled or not. Defaults to ``False``.
- emoji: Optional[Union[:class:`str`, :class:`Emoji`, :class:`PartialEmoji`]]
- The emoji of the button. This can be in string form or a :class:`PartialEmoji`
- or a full :class:`Emoji`.
+ emoji: Optional[Union[:class:`str`, :class:`.Emoji`, :class:`.PartialEmoji`]]
+ The emoji of the button. This can be in string form or a :class:`.PartialEmoji`
+ or a full :class:`.Emoji`.
row: Optional[:class:`int`]
The relative row this button belongs to. A Discord component can only have 5
rows. By default, items are arranged automatically into those 5 rows. If you'd