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

t()

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()
}
Link to this type

suppress_guild_reminder_notifications()

View Source
@type suppress_guild_reminder_notifications() :: boolean()

Suppress server setup tips

Link to this type

suppress_join_notification_replies()

View Source
@type suppress_join_notification_replies() :: boolean()

Hide member join sticker reply buttons

Link to this type

suppress_join_notifications()

View Source
@type suppress_join_notifications() :: boolean()

Suppress member join notifications

Link to this type

suppress_premium_subscriptions()

View Source
@type suppress_premium_subscriptions() :: boolean()

Suppress server boost notifications

Link to this type

suppress_role_subscription_purchase_notifications()

View Source
@type suppress_role_subscription_purchase_notifications() :: boolean()

Suppress role subscription purchase and renewal notifications

Link to this type

suppress_role_subscription_purchase_notifications_replies()

View Source
@type suppress_role_subscription_purchase_notifications_replies() :: boolean()

Hide role subscription sticker reply buttons

@type t() :: flags()

Functions

Link to this function

from_integer(flag_value)

View Source
@spec from_integer(integer()) :: t()

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
}
@spec to_integer(t()) :: integer()

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