Skip to content

Commit 76eb883

Browse files
committed
Restrict icon and cover_image types to bytes or None
Updated the AppInfo class to only accept bytes or None for the icon and cover_image parameters, removing support for str. This change clarifies the expected types and may prevent type-related errors.
1 parent 49c90b9 commit 76eb883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/appinfo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ async def edit(
303303
self,
304304
*,
305305
description: str | None = utils.MISSING,
306-
icon: bytes | str | None = utils.MISSING,
307-
cover_image: bytes | str | None = utils.MISSING,
306+
icon: bytes | None = utils.MISSING,
307+
cover_image: bytes | None = utils.MISSING,
308308
tags: list[str] | None = utils.MISSING,
309309
terms_of_service_url: str | None = utils.MISSING,
310310
privacy_policy_url: str | None = utils.MISSING,

0 commit comments

Comments
 (0)