aboutsummaryrefslogtreecommitdiff
path: root/src/model/guild/partial_guild.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-12-15 14:15:45 -0800
committerZeyla Hellyer <[email protected]>2017-12-15 14:34:10 -0800
commit8c9baa74c2716d62c405d909bb453ffea636c94d (patch)
treeb686b0913eb7e5e070207d441662e32df00ec8ed /src/model/guild/partial_guild.rs
parentAdd missing fields to Guild model (diff)
downloadserenity-8c9baa74c2716d62c405d909bb453ffea636c94d.tar.xz
serenity-8c9baa74c2716d62c405d909bb453ffea636c94d.zip
Change type of a couple Guild/PartialGuild fields
Changes the types of `Guild` and `PartialGuild`'s `default_message_notifications` and `mfa_level` structfields to be a bit more type-strong.
Diffstat (limited to 'src/model/guild/partial_guild.rs')
-rw-r--r--src/model/guild/partial_guild.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/guild/partial_guild.rs b/src/model/guild/partial_guild.rs
index c33c8d0..857ef0d 100644
--- a/src/model/guild/partial_guild.rs
+++ b/src/model/guild/partial_guild.rs
@@ -13,7 +13,7 @@ pub struct PartialGuild {
pub id: GuildId,
pub afk_channel_id: Option<ChannelId>,
pub afk_timeout: u64,
- pub default_message_notifications: u64,
+ pub default_message_notifications: DefaultMessageNotificationLevel,
pub embed_channel_id: Option<ChannelId>,
pub embed_enabled: bool,
#[serde(deserialize_with = "deserialize_emojis")] pub emojis: HashMap<EmojiId, Emoji>,
@@ -24,7 +24,7 @@ pub struct PartialGuild {
/// [`Guild::features`]: struct.Guild.html#structfield.features
pub features: Vec<String>,
pub icon: Option<String>,
- pub mfa_level: u64,
+ pub mfa_level: MfaLevel,
pub name: String,
pub owner_id: UserId,
pub region: String,