From ec104a719f46d6812661c29355e7a9fea8418b49 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sun, 6 Oct 2024 15:25:01 -0600 Subject: Actually carries out !edit and !s commands --- 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 2f38075..f0a2e45 100644 --- a/src/system/bot/mod.rs +++ b/src/system/bot/mod.rs @@ -74,6 +74,10 @@ impl Bot { self.client.resend_message(message_id, channel_id).await; } + pub async fn edit_message(&self, channel_id: ChannelId, message_id: MessageId, new_content: String) -> Result { + self.client.edit_message(channel_id, message_id, new_content).await + } + pub async fn delete_message(&self, channel_id: ChannelId, message_id: MessageId) -> Result<(), TwiError> { self.client.delete_message(channel_id, message_id).await } -- cgit 1.4.1