Skip to content

Commit 4002be8

Browse files
authored
Implemented a servers property into revolt.Client (#36)
* Implement mention for users, members and channels * Add servers property to revolt.Client * Forgot to add the docstring for revolt.servers * fix typo in revolt.Client.servers docstring
1 parent 8d1ee46 commit 4002be8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

revolt/client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ def users(self) -> list[User]:
185185
"""list[:class:`User`] All users the client can see"""
186186
return list(self.state.users.values())
187187

188+
@property
189+
def servers(self) -> list[Server]:
190+
"""list[:class:'Server'] All servers the client can see"""
191+
return list(self.state.servers.values())
192+
188193
async def fetch_user(self, user_id: str) -> User:
189194
"""Fetchs a user
190195

0 commit comments

Comments
 (0)