Skip to content

Commit

Permalink
style(pre-commit): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 12, 2024
1 parent 619ebe4 commit 7b09f4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -2814,7 +2814,7 @@ async def fetch_roles(self) -> list[Role]:
"""
data = await self._state.http.get_roles(self.id)
return [Role(guild=self, state=self._state, data=d) for d in data]

async def fetch_role(self, role_id: int) -> Role:
"""|coro|
Expand All @@ -2823,14 +2823,14 @@ async def fetch_role(self, role_id: int) -> Role:
.. note::
This method is an API call. For general usage, consider using :attr:`get_role` instead.
.. versionadded:: 2.7
Returns
-------
:class:`Role`
The role in the guild with the specified ID.
Raises
------
HTTPException
Expand Down

0 comments on commit 7b09f4e

Please sign in to comment.