aboutsummaryrefslogtreecommitdiff
path: root/src/model/user.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/user.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/user.rs')
-rw-r--r--src/model/user.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/model/user.rs b/src/model/user.rs
index c319775..2732f2b 100644
--- a/src/model/user.rs
+++ b/src/model/user.rs
@@ -300,20 +300,6 @@ impl DefaultAvatar {
pub fn name(&self) -> Result<String> { serde_json::to_string(self).map_err(From::from) }
}
-enum_number!(
- /// Identifier for the notification level of a channel.
- NotificationLevel {
- /// Receive notifications for everything.
- All = 0,
- /// Receive only mentions.
- Mentions = 1,
- /// Receive no notifications.
- Nothing = 2,
- /// Inherit the notification level from the parent setting.
- Parent = 3,
- }
-);
-
/// The representation of a user's status.
///
/// # Examples