From 4ceb1c233d48bc537a8d2aaad129abbf71d8ff81 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sun, 6 Oct 2024 17:17:35 -0600 Subject: Fetches target message from API when not in cache --- src/system/bot/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/system/bot/mod.rs') diff --git a/src/system/bot/mod.rs b/src/system/bot/mod.rs index f0a2e45..2aa3e0a 100644 --- a/src/system/bot/mod.rs +++ b/src/system/bot/mod.rs @@ -70,6 +70,10 @@ impl Bot { self.client.fetch_message(message_id, channel_id).await } + pub async fn fetch_recent_channel_messages(&self, channel_id: ChannelId) -> Result, TwiError> { + self.client.fetch_recent_channel_messages(channel_id).await + } + pub async fn resend_message(&self, message_id: MessageId, channel_id: ChannelId) { self.client.resend_message(message_id, channel_id).await; } -- cgit 1.4.1