kitazith/message_formatting/mention
This module provides functions to create mentions for users, roles, channels, and commands in Discord.
Each function takes a Snowflake (a unique identifier used by Discord) and returns a string formatted as a mention that can be used in messages.
Learn more: API Reference - Documentation - Discord > Message Formatting > Formats
Values
pub fn channel(snowflake: snowflake.Snowflake) -> String
pub fn command(
name name: String,
id snowflake: snowflake.Snowflake,
) -> String
pub fn role(snowflake: snowflake.Snowflake) -> String
pub fn user(snowflake: snowflake.Snowflake) -> String