Nostrum.Struct.User.Flags.from_integer

You're seeing just the function from_integer, go back to Nostrum.Struct.User.Flags module for more information.
Link to this function

from_integer(flag_value)

View Source

Specs

from_integer(integer()) :: t()

Constructs a flag struct based on an integer from the Discord API (either public_flags or flags).

Examples

iex> Nostrum.Struct.User.Flags.from_integer(131842)
%Nostrum.Struct.User.Flags{
  bug_hunter_level_1: false,
  bug_hunter_level_2: false,
  early_supporter: true,
  hypesquad_balance: true,
  hypesquad_bravery: false,
  hypesquad_brilliance: false,
  hypesquad_events: false,
  partner: true,
  staff: false,
  system: false,
  team_user: false,
  verified_bot: false,
  verified_developer: true
}