Skip to content

Commit f2d461d

Browse files
committed
refactor: simplify icon and cover_image type annotations in AppInfo
1 parent ae03d85 commit f2d461d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

discord/appinfo.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,10 @@ async def edit(
327327
----------
328328
description: Optional[:class:`str`]
329329
The new application description or ``None`` to clear.
330-
icon: Optional[Union[:class:`bytes`, :class:`str`]]
331-
New icon image. If ``bytes`` is given it will be base64 encoded automatically. If a ``str`` is given it is assumed
332-
to be a pre-encoded base64 data URI or hash and sent as-is. Pass ``None`` to clear.
333-
cover_image: Optional[Union[:class:`bytes`, :class:`str`]]
334-
New cover image for the store embed. If ``bytes`` is given it will be base64 encoded automatically. If a ``str`` is given it is assumed
335-
to be a pre-encoded base64 data URI or hash and sent as-is. Pass ``None`` to clear.
330+
icon: Optional[:class:`bytes`]
331+
New icon image. If ``bytes`` is given it will be base64 encoded automatically. Pass ``None`` to clear.
332+
cover_image: Optional[:class:`bytes`]
333+
New cover image for the store embed. If ``bytes`` is given it will be base64 encoded automatically. Pass ``None`` to clear.
336334
tags: Optional[List[:class:`str`]]
337335
List of tags for the application (max 5). Pass ``None`` to clear.
338336
terms_of_service_url: Optional[:class:`str`]

0 commit comments

Comments
 (0)