Browse Source

Change ban type hints to use int instead of Literal

pull/7723/head
Rapptz 3 years ago
parent
commit
5f7c5abe0a
  1. 2
      discord/guild.py
  2. 2
      discord/member.py

2
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|

2
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|

Loading…
Cancel
Save