aboutsummaryrefslogtreecommitdiff
path: root/src/model/guild/feature.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/guild/feature.rs')
-rw-r--r--src/model/guild/feature.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/model/guild/feature.rs b/src/model/guild/feature.rs
new file mode 100644
index 0000000..cfbcabc
--- /dev/null
+++ b/src/model/guild/feature.rs
@@ -0,0 +1,25 @@
+/// A special feature, such as for VIP guilds, that a [`Guild`] has had granted
+/// to them.
+///
+/// [`Guild`]: struct.Guild.html
+#[derive(Copy, Clone, Debug, Deserialize, Hash, Eq, PartialEq)]
+pub enum Feature {
+ /// The [`Guild`] can set a custom [`splash`][`Guild::splash`] image on
+ /// invite URLs.
+ ///
+ /// [`Guild`]: struct.Guild.html
+ /// [`Guild::splash`]: struct.Guild.html#structfield.splash
+ #[serde(rename="INVITE_SPLASH")]
+ InviteSplash,
+ /// The [`Guild`] can set a Vanity URL, which is a custom-named permanent
+ /// invite code.
+ ///
+ /// [`Guild`]: struct.Guild.html
+ #[serde(rename="VANITY_URL")]
+ VanityUrl,
+ /// The [`Guild`] has access to VIP voice channel regions.
+ ///
+ /// [`Guild`]: struct.Guild.html
+ #[serde(rename="VIP_REGIONS")]
+ VipRegions,
+}