grom/message/reaction
Types
pub type CountDetails {
CountDetails(burst: Int, normal: Int)
}
Constructors
-
CountDetails(burst: Int, normal: Int)
pub type Reaction {
Reaction(
count: Int,
count_details: CountDetails,
current_user_reacted: Bool,
current_user_burst_reacted: Bool,
emoji: emoji.Emoji,
burst_colors: List(Int),
)
}
Constructors
-
Reaction( count: Int, count_details: CountDetails, current_user_reacted: Bool, current_user_burst_reacted: Bool, emoji: emoji.Emoji, burst_colors: List(Int), )
Values
pub fn create(
client: grom.Client,
in channel_id: String,
on message_id: String,
emoji emoji_id: String,
) -> Result(Nil, grom.Error)
pub fn delete_own(
client: grom.Client,
in channel_id: String,
from message_id: String,
emoji emoji_id: String,
) -> Result(Nil, grom.Error)
pub fn delete_users(
client: grom.Client,
in channel_id: String,
from message_id: String,
emoji emoji_id: String,
id user_id: String,
) -> Result(Nil, grom.Error)