mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 21:47:02 +00:00
Invite bot to server / group for #8.
This commit is contained in:
@@ -61,6 +61,10 @@ impl Ref {
|
||||
self.fetch("channel_invites").await
|
||||
}
|
||||
|
||||
pub async fn fetch_bot(&self) -> Result<Bot> {
|
||||
self.fetch("bots").await
|
||||
}
|
||||
|
||||
pub async fn fetch_member(&self, server: &str) -> Result<Member> {
|
||||
let doc = get_collection("server_members")
|
||||
.find_one(
|
||||
|
||||
Reference in New Issue
Block a user