summary refs log tree commit diff
path: root/src/system/bot/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/system/bot/mod.rs')
-rw-r--r--src/system/bot/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/system/bot/mod.rs b/src/system/bot/mod.rs
index 6bf8d78..3c4585f 100644
--- a/src/system/bot/mod.rs
+++ b/src/system/bot/mod.rs
@@ -5,6 +5,7 @@ use std::sync::Arc;
 use tokio::sync::mpsc::Sender;
 use tokio::sync::RwLock;
 use twilight_http::error::Error as TwiError;
+use twilight_http::request::channel::reaction::RequestReactionType;
 
 pub use super::types::*;
 pub use client::MessageDuplicateError;
@@ -73,6 +74,10 @@ impl Bot {
         self.client.delete_message(channel_id, message_id).await
     }
 
+    pub async fn react_message(&self, channel_id: ChannelId, message_id: MessageId, react: &'_ RequestReactionType<'_>) -> Result<(), TwiError> {
+        self.client.react_message(channel_id, message_id, react).await
+    }
+
     pub async fn duplicate_message(&self, message_id: &TwiMessage, content: &str) ->  Result<TwiMessage, MessageDuplicateError> {
         self.client.duplicate_message(message_id, content).await
     }