revolt.Server.fetch_bans() has docstring for server invites #23

Closed
opened 2026-02-15 23:16:16 -05:00 by yindo · 0 comments
Owner

Originally created by @MysticMia on GitHub (Jun 21, 2023).

Describe the bug

 async def fetch_bans(self) -> list[ServerBan]:
        """Fetches all invites in the server

        Returns
        --------
        list[:class:`Invite`]
        """
        payload = await self.state.http.fetch_bans(self.id)

        return [ServerBan(ban, self.state) for ban in payload["bans"]]

has "Fetches all invites" for "fetch_bans"

Library version
0.1.11 (latest from GitHub)

Originally created by @MysticMia on GitHub (Jun 21, 2023). **Describe the bug** ```py async def fetch_bans(self) -> list[ServerBan]: """Fetches all invites in the server Returns -------- list[:class:`Invite`] """ payload = await self.state.http.fetch_bans(self.id) return [ServerBan(ban, self.state) for ban in payload["bans"]] ``` has "Fetches all invites" for "fetch_bans" **Library version** 0.1.11 (latest from GitHub)
yindo added the documentation label 2026-02-15 23:16:16 -05:00
yindo closed this issue 2026-02-15 23:16:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/python-client-sdk#23