Skip to content

Commit

Permalink
reformat docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
Snipy7374 committed Nov 22, 2024
1 parent 1eff409 commit ac8acb1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions disnake/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -2834,16 +2834,14 @@ def __repr__(self) -> str:

@property
def guild(self) -> Optional[Guild]:
"""
Optional[:class:`disnake.Guild`]: The guild where the message was forwarded from, if applicable.
"""Optional[:class:`disnake.Guild`]: The guild where the message was forwarded from, if applicable.
This could be ``None`` if the guild is not cached.
"""
return self._state._get_guild(self.guild_id)

@property
def channel(self) -> Optional[Union[GuildChannel, Thread, PartialMessageable]]:
"""
Optional[Union[:class:`TextChannel`, :class:`VoiceChannel`, :class:`StageChannel`, :class:`Thread`, :class:`PartialMessageable`]]:
"""Optional[Union[:class:`TextChannel`, :class:`VoiceChannel`, :class:`StageChannel`, :class:`Thread`, :class:`PartialMessageable`]]:
The channel that the message was forwarded from. This could be ``None`` if the channel is not cached or a
:class:`disnake.PartialMessageable` if the ``guild`` is not cached or if the message forwarded is not coming from a guild (e.g DMs).
"""
Expand Down

0 comments on commit ac8acb1

Please sign in to comment.