Fix a couple docstrings
This commit is contained in:
parent
8eb6fa0329
commit
7ee5dc22fb
@ -361,7 +361,7 @@ class Webhook:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def partial(cls, id, token, *, adapter):
|
def partial(cls, id, token, *, adapter):
|
||||||
"""Creates an partial :class:`Webhook`.
|
"""Creates a partial :class:`Webhook`.
|
||||||
|
|
||||||
A partial webhook is just a webhook object with an ID and a token.
|
A partial webhook is just a webhook object with an ID and a token.
|
||||||
|
|
||||||
@ -419,7 +419,7 @@ class Webhook:
|
|||||||
def guild(self):
|
def guild(self):
|
||||||
"""Optional[:class:`Guild`]: The guild this webhook belongs to.
|
"""Optional[:class:`Guild`]: The guild this webhook belongs to.
|
||||||
|
|
||||||
If this is an partial webhook, then this will always return ``None``.
|
If this is a partial webhook, then this will always return ``None``.
|
||||||
"""
|
"""
|
||||||
return self._state and self._state.get_guild(self.guild_id)
|
return self._state and self._state.get_guild(self.guild_id)
|
||||||
|
|
||||||
@ -427,7 +427,7 @@ class Webhook:
|
|||||||
def channel(self):
|
def channel(self):
|
||||||
"""Optional[:class:`TextChannel`]: The text channel this webhook belongs to.
|
"""Optional[:class:`TextChannel`]: The text channel this webhook belongs to.
|
||||||
|
|
||||||
If this is an partial webhook, then this will always return ``None``.
|
If this is a partial webhook, then this will always return ``None``.
|
||||||
"""
|
"""
|
||||||
guild = self.guild
|
guild = self.guild
|
||||||
return guild and guild.get_channel(self.channel_id)
|
return guild and guild.get_channel(self.channel_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user