Invite bot to server / group for #8.

This commit is contained in:
Paul committed 2021-08-12 09:24:06 +01:00
1 parent 93610ebbc3
commit 9f749cfdf8
7 files changed
+127 -51

No files matched your search

+4
View File
@@ -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(