kitazith/flag

Types

pub type MessageFlag {
  Crossposted
  IsCrosspost
  SuppressEmbeds
  SourceMessageDeleted
  Urgent
  HasThread
  Ephemeral
  Loading
  FailedToMentionSomeRolesInThread
  SuppressNotifications
  IsVoiceMessage
  HasSnapshot
  IsComponentsV2
}

Constructors

  • Crossposted
  • IsCrosspost
  • SuppressEmbeds
  • SourceMessageDeleted
  • Urgent
  • HasThread
  • Ephemeral
  • Loading
  • FailedToMentionSomeRolesInThread
  • SuppressNotifications
  • IsVoiceMessage
  • HasSnapshot
  • IsComponentsV2

Values

pub fn from_int(bits: Int) -> List(MessageFlag)

Decode a Discord message flag bitfield into the supported message flags.

Unknown bits are ignored.

Learn more: Message Resource - Documentation - Discord > Message Object > Message Flags

pub fn to_int(message_flags: List(MessageFlag)) -> Int

Encode the supported message flags into a Discord message flag bitfield.

Learn more: Message Resource - Documentation - Discord > Message Object > Message Flags

Search Document