Invite bot to server / group for #8.

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

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(