mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Make description parameter of Guild.create_sticker non-Optional
Co-authored-by: James Hilton-Balfe <gobot1234yt@gmail.com>
This commit is contained in:
parent
8072e294a8
commit
b77cf500a2
@ -2405,7 +2405,7 @@ class Guild(Hashable):
|
|||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
name: str,
|
name: str,
|
||||||
description: Optional[str] = None,
|
description: str,
|
||||||
emoji: str,
|
emoji: str,
|
||||||
file: File,
|
file: File,
|
||||||
reason: Optional[str] = None,
|
reason: Optional[str] = None,
|
||||||
@ -2423,8 +2423,8 @@ class Guild(Hashable):
|
|||||||
-----------
|
-----------
|
||||||
name: :class:`str`
|
name: :class:`str`
|
||||||
The sticker name. Must be at least 2 characters.
|
The sticker name. Must be at least 2 characters.
|
||||||
description: Optional[:class:`str`]
|
description: :class:`str`
|
||||||
The sticker's description. Can be ``None``.
|
The sticker's description.
|
||||||
emoji: :class:`str`
|
emoji: :class:`str`
|
||||||
The name of a unicode emoji that represents the sticker's expression.
|
The name of a unicode emoji that represents the sticker's expression.
|
||||||
file: :class:`File`
|
file: :class:`File`
|
||||||
@ -2448,8 +2448,7 @@ class Guild(Hashable):
|
|||||||
'name': name,
|
'name': name,
|
||||||
}
|
}
|
||||||
|
|
||||||
if description:
|
payload['description'] = description
|
||||||
payload['description'] = description
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
emoji = unicodedata.name(emoji)
|
emoji = unicodedata.name(emoji)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user