summaryrefslogtreecommitdiff
path: root/common/rust/src
diff options
context:
space:
mode:
authorMatthieu <matthieu@developershouse.xyz>2021-10-20 09:49:41 +0400
committerMatthieu <matthieu@developershouse.xyz>2021-10-20 09:49:41 +0400
commit861993c31aed98f04552d01d70bbf9289891bb16 (patch)
tree972ad5cd049c8f7f7ce95e6feb47eb9356291f13 /common/rust/src
parent14da2f171c96c00a5e31ac36515f41f1ad063133 (diff)
fix some things
Diffstat (limited to 'common/rust/src')
-rw-r--r--common/rust/src/discord_models/audit_log.rs6
-rw-r--r--common/rust/src/discord_models/gateway.rs6
2 files changed, 12 insertions, 0 deletions
diff --git a/common/rust/src/discord_models/audit_log.rs b/common/rust/src/discord_models/audit_log.rs
index 0579a37..f223a2f 100644
--- a/common/rust/src/discord_models/audit_log.rs
+++ b/common/rust/src/discord_models/audit_log.rs
@@ -1,5 +1,6 @@
use serde::{Deserialize, Serialize};
use serde_repr::{Deserialize_repr, Serialize_repr};
+use crate::discord_models::channel::Channel;
use super::{guild::Integration, user::User, webhook::Webhook};
@@ -199,10 +200,15 @@ pub struct AuditLogEntry {
pub reason: Option<String>,
}
+pub enum NewAuditLogEntry {
+
+}
+
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct AuditLog {
pub webhooks: Vec<Webhook>,
pub users: Vec<User>,
+ pub threads: Vec<Channel>,
pub audit_log_entries: Vec<AuditLogEntry>,
pub integrations: Vec<Integration>,
}
diff --git a/common/rust/src/discord_models/gateway.rs b/common/rust/src/discord_models/gateway.rs
index dbdf60d..a886d99 100644
--- a/common/rust/src/discord_models/gateway.rs
+++ b/common/rust/src/discord_models/gateway.rs
@@ -116,3 +116,9 @@ pub struct Activity {
pub flags: Option<BitFlags<ActivityFlags>>,
pub buttons: Option<Vec<ActivityButtons>>,
}
+
+#[derive(Debug, Clone, Deserialize, Serialize)]
+#[serde(tag = "type")]
+pub enum NewActivity {
+
+} \ No newline at end of file