summary refs log tree commit diff
path: root/src/system/bot/client.rs
diff options
context:
space:
mode:
authorAshelyn Rose <git@ashen.earth>2025-01-29 15:45:32 -0700
committerAshelyn Rose <git@ashen.earth>2025-01-29 15:45:32 -0700
commit5cb49a76c2cedb500b82f405af3cf1dcc0507f98 (patch)
treeefd21ffd35e1c246c03222f1106192f02c19984a /src/system/bot/client.rs
parent5e6a11a19d0fec86c9c08d5ce9c5fcc176efde4b (diff)
Add !part HEAD main
Diffstat (limited to 'src/system/bot/client.rs')
-rw-r--r--src/system/bot/client.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/system/bot/client.rs b/src/system/bot/client.rs
index c556207..ee01e6e 100644
--- a/src/system/bot/client.rs
+++ b/src/system/bot/client.rs
@@ -194,6 +194,14 @@ impl Client {
 
         Ok(new_message)
     }
+
+    pub async fn leave_server(&self, server_id: ServerId) -> Result<(), TwiError> {
+        self.client.lock().await.leave_guild(
+            server_id,
+        ).await?;
+
+        return Ok(())
+    }
 }
 
 #[derive(Debug)]