summary refs log tree commit diff
path: root/src/system/bot/mod.rs
diff options
context:
space:
mode:
authorAshelyn Rose <git@ashen.earth>2024-10-05 18:02:12 -0600
committerAshelyn Rose <git@ashen.earth>2024-10-05 18:02:12 -0600
commitca4b0e32be531053f19ce2895b994130b247af4a (patch)
treebdfef248c6917109b6a768bed9733b0999ae0e2f /src/system/bot/mod.rs
parent4fa4907c3da23249ddec2bcb50e48f708152059e (diff)
Add sent-message cache for looking up command targets
Diffstat (limited to 'src/system/bot/mod.rs')
-rw-r--r--src/system/bot/mod.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/system/bot/mod.rs b/src/system/bot/mod.rs
index 3c4585f..2f38075 100644
--- a/src/system/bot/mod.rs
+++ b/src/system/bot/mod.rs
@@ -66,8 +66,12 @@ impl Bot {
         self.gateway.start_listening()
     }
 
-    pub async fn refetch_message(&self, message_id: MessageId, channel_id: ChannelId) {
-        self.client.refetch_message(message_id, channel_id).await;
+    pub async fn fetch_message(&self, message_id: MessageId, channel_id: ChannelId) -> TwiMessage {
+        self.client.fetch_message(message_id, channel_id).await
+    }
+
+    pub async fn resend_message(&self, message_id: MessageId, channel_id: ChannelId) {
+        self.client.resend_message(message_id, channel_id).await;
     }
 
     pub async fn delete_message(&self, channel_id: ChannelId, message_id: MessageId) -> Result<(), TwiError> {