kitazith/allowed_mentions

Types

pub type AllowedMention {
  Roles
  Users
  Everyone
}

Constructors

  • Roles
  • Users
  • Everyone
pub type AllowedMentions {
  AllowedMentions(
    parse: option.Option(List(AllowedMention)),
    roles: option.Option(List(snowflake.Snowflake)),
    users: option.Option(List(snowflake.Snowflake)),
    replied_user: option.Option(Bool),
  )
}

Constructors

Values

pub fn with_parse(
  mentions: AllowedMentions,
  parse: List(AllowedMention),
) -> AllowedMentions
pub fn with_replied_user(
  mentions: AllowedMentions,
  replied_user: Bool,
) -> AllowedMentions
pub fn with_roles(
  mentions: AllowedMentions,
  roles: List(snowflake.Snowflake),
) -> AllowedMentions
pub fn with_users(
  mentions: AllowedMentions,
  users: List(snowflake.Snowflake),
) -> AllowedMentions
Search Document