feat(core/models): basic implementation of User and File models

This commit is contained in:
Paul Makles
2023-04-23 17:44:36 +01:00
parent e6d0d44c5a
commit f8c8407af3
10 changed files with 387 additions and 50 deletions

View File

@@ -42,13 +42,6 @@ auto_derived_partial!(
);
auto_derived!(
/// Flags that may be attributed to a bot
#[repr(i32)]
pub enum BotFlags {
Verified = 1,
Official = 2,
}
/// Optional fields on bot object
pub enum FieldsBot {
Token,

View File

@@ -1,4 +1,3 @@
use ::mongodb::bson::doc;
use revolt_result::Result;
use crate::{Bot, FieldsBot, PartialBot};