From 9839e7a0e8097de6e2fa792a9da8e55dbb24dbe1 Mon Sep 17 00:00:00 2001 From: dolfies Date: Sun, 26 Mar 2023 13:13:42 -0400 Subject: [PATCH] Change Fetch -> Retrieve for last_message documentation --- discord/channel.py | 4 ++-- discord/threads.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/channel.py b/discord/channel.py index 46b957dab..420842bf3 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -2322,7 +2322,7 @@ class DMChannel(discord.abc.Messageable, discord.abc.Connectable, Hashable): @property def last_message(self) -> Optional[Message]: - """Fetches the last message from this channel in cache. + """Retrieves the last message from this channel in cache. The message might not be valid or point to an existing message. @@ -2691,7 +2691,7 @@ class GroupChannel(discord.abc.Messageable, discord.abc.Connectable, Hashable): @property def last_message(self) -> Optional[Message]: - """Fetches the last message from this channel in cache. + """Retrieves the last message from this channel in cache. The message might not be valid or point to an existing message. diff --git a/discord/threads.py b/discord/threads.py index ca8a220c0..08e70a886 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -262,7 +262,7 @@ class Thread(Messageable, Hashable): @property def last_message(self) -> Optional[Message]: - """Fetches the last message from this channel in cache. + """Retrieves the last message from this channel in cache. The message might not be valid or point to an existing message.