Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

🎉 Added all user and current user methods #299

Merged
merged 12 commits into from
Dec 19, 2021
4 changes: 2 additions & 2 deletions pincer/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,8 @@ async def leave_guild(self, _id: Snowflake):
the id of the guild that the bot will leave
"""
self.http.delete(f"users/@me/guilds/{_id}")
self._client.guilds.pop(_id)
self._client.guilds.pop(_id, None)
trag1c marked this conversation as resolved.
Show resolved Hide resolved

async def create_group_dm(
self, access_tokens: List[str], nicks: Dict[Snowflake, str]
) -> GroupDMChannel:
Expand Down Expand Up @@ -995,5 +996,4 @@ async def get_connections(self) -> AsyncIterator[Connection]:
yield Connection.from_dict(conn)



Bot = Client