Skip to content

Commit 7ab9ccd

Browse files
authored
Merge pull request #610 from rtk-rnjn/master
Update member.py
2 parents 0fe9b0a + f9830a4 commit 7ab9ccd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/member.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ async def edit(
785785
data = await http.edit_member(guild_id, self.id, reason=reason, **payload)
786786
return Member(data=data, guild=self.guild, state=self._state)
787787

788-
async def timeout(self, until: Optional[datetime.datetime], reason: str = None) -> None:
788+
async def timeout(self, until: Optional[datetime.datetime], *, reason: Optional[str] = None) -> None:
789789
"""|coro|
790790
791791
Timeouts a member from the guild for the set duration.
@@ -809,7 +809,7 @@ async def timeout(self, until: Optional[datetime.datetime], reason: str = None)
809809
"""
810810
await self.edit(communication_disabled_until=until, reason=reason)
811811

812-
async def remove_timeout(self, reason: str = None) -> None:
812+
async def remove_timeout(self, *, reason: Optional[str] = None) -> None:
813813
"""|coro|
814814
815815
Removes the timeout from a member.

0 commit comments

Comments
 (0)