feat(core/database): implement user operations

This commit is contained in:
Paul Makles
2023-04-26 17:36:51 +01:00
parent e33ae17061
commit 08ccc43f8d
7 changed files with 537 additions and 6 deletions

View File

@@ -84,7 +84,7 @@ impl Bot {
/// Delete this bot
pub async fn delete(&self, db: &Database) -> Result<()> {
// db.fetch_user(&self.id).await?.mark_deleted(db).await?;
db.fetch_user(&self.id).await?.mark_deleted(db).await?;
db.delete_bot(&self.id).await
}
}