Make arguments positional only in 2 get methods

- Member.get_role
- Guild.get_member
This commit is contained in:
Izhar Ahmad
2021-08-26 05:52:20 +05:00
committed by GitHub
parent dd7d4b8e7f
commit efec816de2
2 changed files with 2 additions and 2 deletions

View File

@ -890,7 +890,7 @@ class Member(discord.abc.Messageable, _UserTag):
for role in roles:
await req(guild_id, user_id, role.id, reason=reason)
def get_role(self, role_id: int) -> Optional[Role]:
def get_role(self, role_id: int, /) -> Optional[Role]:
"""Returns a role with the given ID from roles which the member has.
.. versionadded:: 2.0