We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 619ebe4 commit 7b09f4eCopy full SHA for 7b09f4e
discord/guild.py
@@ -2814,7 +2814,7 @@ async def fetch_roles(self) -> list[Role]:
2814
"""
2815
data = await self._state.http.get_roles(self.id)
2816
return [Role(guild=self, state=self._state, data=d) for d in data]
2817
-
+
2818
async def fetch_role(self, role_id: int) -> Role:
2819
"""|coro|
2820
@@ -2823,14 +2823,14 @@ async def fetch_role(self, role_id: int) -> Role:
2823
.. note::
2824
2825
This method is an API call. For general usage, consider using :attr:`get_role` instead.
2826
2827
.. versionadded:: 2.7
2828
2829
Returns
2830
-------
2831
:class:`Role`
2832
The role in the guild with the specified ID.
2833
2834
Raises
2835
------
2836
HTTPException
0 commit comments