From 5f7c5abe0a1acc1af79c6b471d19be5b2ef26cac Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 18 Mar 2022 21:45:15 -0400 Subject: [PATCH] Change ban type hints to use int instead of Literal --- discord/guild.py | 2 +- discord/member.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/guild.py b/discord/guild.py index 8aabb1fb6..6aa247a5e 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -3066,7 +3066,7 @@ class Guild(Hashable): user: Snowflake, *, reason: Optional[str] = None, - delete_message_days: Literal[0, 1, 2, 3, 4, 5, 6, 7] = 1, + delete_message_days: int = 1, ) -> None: """|coro| diff --git a/discord/member.py b/discord/member.py index 6a9e275af..37f2e4e7a 100644 --- a/discord/member.py +++ b/discord/member.py @@ -690,7 +690,7 @@ class Member(discord.abc.Messageable, _UserTag): async def ban( self, *, - delete_message_days: Literal[0, 1, 2, 3, 4, 5, 6, 7] = 1, + delete_message_days: int = 1, reason: Optional[str] = None, ) -> None: """|coro|