View Source Nostrum.Struct.Guild.SystemChannelFlags (Nostrum v0.10.0)
Struct representing the flags on a guild's system channel
Summary
Types
Suppress server setup tips
Hide member join sticker reply buttons
Suppress member join notifications
Suppress server boost notifications
Suppress role subscription purchase and renewal notifications
Hide role subscription sticker reply buttons
Functions
Constructs a flag struct based on an integer from the Discord API, normally from Nostrum.Struct.Guild.Member.flags/0
.
Convert a flag struct to an integer value.
Types
@type flags() :: %Nostrum.Struct.Guild.SystemChannelFlags{ suppress_guild_reminder_notifications: suppress_guild_reminder_notifications(), suppress_join_notification_replies: suppress_join_notification_replies(), suppress_join_notifications: suppress_join_notifications(), suppress_premium_subscriptions: suppress_premium_subscriptions(), suppress_role_subscription_purchase_notification_replies: suppress_role_subscription_purchase_notifications_replies(), suppress_role_subscription_purchase_notifications: suppress_role_subscription_purchase_notifications() }
@type suppress_guild_reminder_notifications() :: boolean()
Suppress server setup tips
@type suppress_join_notification_replies() :: boolean()
Hide member join sticker reply buttons
@type suppress_join_notifications() :: boolean()
Suppress member join notifications
@type suppress_role_subscription_purchase_notifications() :: boolean()
Suppress role subscription purchase and renewal notifications
@type suppress_role_subscription_purchase_notifications_replies() :: boolean()
Hide role subscription sticker reply buttons
@type t() :: flags()
Functions
Constructs a flag struct based on an integer from the Discord API, normally from Nostrum.Struct.Guild.Member.flags/0
.
Examples
iex> Nostrum.Struct.Guild.SystemChannelFlags.from_integer(3)
%Nostrum.Struct.Guild.SystemChannelFlags{
suppress_guild_reminder_notifications: false,
suppress_join_notification_replies: false,
suppress_join_notifications: true,
suppress_premium_subscriptions: true,
suppress_role_subscription_purchase_notification_replies: false,
suppress_role_subscription_purchase_notifications: false
}
Convert a flag struct to an integer value.
Examples
iex> my_flags = %Nostrum.Struct.Guild.SystemChannelFlags{
...> suppress_join_notifications: true,
...> suppress_join_notification_replies: true
...> }
iex> Nostrum.Struct.Guild.SystemChannelFlags.to_integer(my_flags)
9