From f49fefb400077c7aaf814feef25f1f098ef99215 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Mon, 14 Aug 2023 17:18:53 +0200 Subject: [PATCH] derive Updateable for Guild --- src/types/entities/guild.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types/entities/guild.rs b/src/types/entities/guild.rs index b95b68a..88b55ce 100644 --- a/src/types/entities/guild.rs +++ b/src/types/entities/guild.rs @@ -1,9 +1,11 @@ use std::sync::{Arc, RwLock}; +use chorus_macros::Updateable; use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; use serde_repr::{Deserialize_repr, Serialize_repr}; +use crate::gateway::Updateable; use crate::types::types::guild_configuration::GuildFeaturesList; use crate::types::{ entities::{Channel, Emoji, RoleObject, Sticker, User, VoiceState, Webhook}, @@ -12,7 +14,7 @@ use crate::types::{ }; /// See -#[derive(Serialize, Deserialize, Debug, Default, Clone)] +#[derive(Serialize, Deserialize, Debug, Default, Clone, Updateable)] #[cfg_attr(feature = "sqlx", derive(sqlx::FromRow))] pub struct Guild { pub afk_channel_id: Option,