mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Fix typo and commas consistency in Activity doc
This commit is contained in:
parent
69b12b97c0
commit
e5f3706c02
@ -185,7 +185,7 @@ class Activity(BaseActivity):
|
|||||||
- ``id``: A string representing the party ID.
|
- ``id``: A string representing the party ID.
|
||||||
- ``size``: A list of up to two integer elements denoting (current_size, maximum_size).
|
- ``size``: A list of up to two integer elements denoting (current_size, maximum_size).
|
||||||
buttons: List[:class:`str`]
|
buttons: List[:class:`str`]
|
||||||
An list of strings representing the labels of custom buttons shown in a rich presence.
|
A list of strings representing the labels of custom buttons shown in a rich presence.
|
||||||
|
|
||||||
.. versionadded:: 2.0
|
.. versionadded:: 2.0
|
||||||
|
|
||||||
@ -285,7 +285,7 @@ class Activity(BaseActivity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def large_image_url(self) -> Optional[str]:
|
def large_image_url(self) -> Optional[str]:
|
||||||
"""Optional[:class:`str`]: Returns a URL pointing to the large image asset of this activity if applicable."""
|
"""Optional[:class:`str`]: Returns a URL pointing to the large image asset of this activity, if applicable."""
|
||||||
try:
|
try:
|
||||||
large_image = self.assets['large_image']
|
large_image = self.assets['large_image']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
@ -295,7 +295,7 @@ class Activity(BaseActivity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def small_image_url(self) -> Optional[str]:
|
def small_image_url(self) -> Optional[str]:
|
||||||
"""Optional[:class:`str`]: Returns a URL pointing to the small image asset of this activity if applicable."""
|
"""Optional[:class:`str`]: Returns a URL pointing to the small image asset of this activity, if applicable."""
|
||||||
try:
|
try:
|
||||||
small_image = self.assets['small_image']
|
small_image = self.assets['small_image']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
@ -311,12 +311,12 @@ class Activity(BaseActivity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def large_image_text(self) -> Optional[str]:
|
def large_image_text(self) -> Optional[str]:
|
||||||
"""Optional[:class:`str`]: Returns the large image asset hover text of this activity if applicable."""
|
"""Optional[:class:`str`]: Returns the large image asset hover text of this activity, if applicable."""
|
||||||
return self.assets.get('large_text', None)
|
return self.assets.get('large_text', None)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def small_image_text(self) -> Optional[str]:
|
def small_image_text(self) -> Optional[str]:
|
||||||
"""Optional[:class:`str`]: Returns the small image asset hover text of this activity if applicable."""
|
"""Optional[:class:`str`]: Returns the small image asset hover text of this activity, if applicable."""
|
||||||
return self.assets.get('small_text', None)
|
return self.assets.get('small_text', None)
|
||||||
|
|
||||||
|
|
||||||
@ -705,7 +705,7 @@ class Spotify:
|
|||||||
|
|
||||||
|
|
||||||
class CustomActivity(BaseActivity):
|
class CustomActivity(BaseActivity):
|
||||||
"""Represents a Custom activity from Discord.
|
"""Represents a custom activity from Discord.
|
||||||
|
|
||||||
.. container:: operations
|
.. container:: operations
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user