glyde/event/presence
Who is doing what: TYPING_START today. USER_UPDATE decodes straight to
glyde/user, and PRESENCE_UPDATE is not modelled yet.
Types
pub type TypingStart {
TypingStart(
channel_id: id.Id(id.Channel),
guild_id: option.Option(id.Id(id.Guild)),
user_id: id.Id(id.User),
timestamp: Int,
member: option.Option(member.GuildMember),
)
}
Constructors
-
TypingStart( channel_id: id.Id(id.Channel), guild_id: option.Option(id.Id(id.Guild)), user_id: id.Id(id.User), timestamp: Int, member: option.Option(member.GuildMember), )Arguments
- timestamp
-
UNIX SECONDS. Not milliseconds and not ISO-8601, and the only unix timestamp anywhere in the dispatch surface.
- member
-
Present on a guild channel, absent in a DM.
Values
pub fn typing_start_decoder() -> decode.Decoder(TypingStart)