From 4c6c2a7a8e13bc7ec7a6154f200c70fc4159f6d9 Mon Sep 17 00:00:00 2001 From: n1c00o Date: Sat, 2 Oct 2021 21:36:56 +0200 Subject: [PATCH] Remove discord_models for now Using https://github.com/discordnova/discord-openapi/ --- common/rust/src/discord_models.rs | 35 ------------------------------- common/rust/src/lib.rs | 1 - 2 files changed, 36 deletions(-) delete mode 100644 common/rust/src/discord_models.rs diff --git a/common/rust/src/discord_models.rs b/common/rust/src/discord_models.rs deleted file mode 100644 index 8426329..0000000 --- a/common/rust/src/discord_models.rs +++ /dev/null @@ -1,35 +0,0 @@ -use serde::{Deserialize, Serialize}; - -#[derive(Serialize, Deserialize, Debug, Clone)] -pub struct User { - /// the user's id - pub id: String, - /// the user's username, not unique across the platform - pub username: String, - /// the user's 4-digit discord-tag - pub discriminator: String, - /// the user's avatar hash - pub avatar: Option, - /// whether the user belongs to an OAuth2 application - pub bot: Option, - /// whether the user is an Official Discord System user (part of the urgent message system) - pub system: Option, - /// the user's id - pub mfa_enabled: Option, - /// the user's banner hash - pub banner: Option, - /// the user's banner color encoded as an integer representation of hexadecimal color code - pub accent_color: Option, - /// the user's chosen language option - pub locale: Option, - /// whether the email on this account has been verified - pub verified: Option, - /// the user's email - pub email: Option, - /// the flags on a user's account - pub flags: Option, - /// the type of Nitro subscription on a user's account - pub premium_type: Option, - /// the public flags on a user's account - pub public_flags: Option, -} diff --git a/common/rust/src/lib.rs b/common/rust/src/lib.rs index a021e97..90f4b96 100644 --- a/common/rust/src/lib.rs +++ b/common/rust/src/lib.rs @@ -1,7 +1,6 @@ /// This crate contains shared code in all the rust projects /// It contains utilities such as monitoring, logging and more. pub mod config; -pub mod discord_models; pub mod error; pub mod monitoring; pub mod nats; -- 2.39.5