kitazith/allowed_mentions
Types
Learn more: Message Resource - Documentation - Discord > Allowed Mentions Object > Allowed Mention 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
-
AllowedMentions( parse: option.Option(List(AllowedMention)), roles: option.Option(List(snowflake.Snowflake)), users: option.Option(List(snowflake.Snowflake)), replied_user: option.Option(Bool), )Arguments
- roles
-
Snowflake Role IDs that can be mentioned. Up to 100.
- users
-
Snowflake User IDs that can be mentioned. Up to 100.
Values
pub fn new() -> AllowedMentions
pub fn to_json(m: AllowedMentions) -> json.Json
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