serenity/model/guild/system_channel.rs
1bitflags! {
2 /// Describes a system channel flags.
3 ///
4 /// [Discord docs](https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags).
5 #[cfg_attr(feature = "typesize", derive(typesize::derive::TypeSize))]
6 #[derive(Copy, Clone, Default, Debug, Eq, Hash, PartialEq)]
7 pub struct SystemChannelFlags: u64 {
8 /// Suppress member join notifications.
9 const SUPPRESS_JOIN_NOTIFICATIONS = 1 << 0;
10 /// Suppress server boost notifications.
11 const SUPPRESS_PREMIUM_SUBSCRIPTIONS = 1 << 1;
12 /// Suppress server setup tips.
13 const SUPPRESS_GUILD_REMINDER_NOTIFICATIONS = 1 << 2;
14 /// Hide member join sticker reply buttons.
15 const SUPPRESS_JOIN_NOTIFICATION_REPLIES = 1 << 3;
16 /// Suppress role subscription purchase and renewal notifications.
17 const SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS = 1 << 4;
18 /// Hide role subscription sticker reply buttons.
19 const SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES = 1 << 5;
20 }
21}