From ac8acb1bcad8e6e8845a1008b984e561f8cf8710 Mon Sep 17 00:00:00 2001 From: Snipy7374 <100313469+Snipy7374@users.noreply.github.com> Date: Fri, 22 Nov 2024 23:48:16 +0100 Subject: [PATCH] reformat docstrings --- disnake/message.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/disnake/message.py b/disnake/message.py index b8ca247ffb..d7442e84db 100644 --- a/disnake/message.py +++ b/disnake/message.py @@ -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). """