glyde/event/channels

CHANNEL_* and THREAD_* dispatches. Create, update and delete decode straight to glyde/channel; these are the two that are not a channel.

Values

pub fn pins_update_decoder(
  build: fn(
    option.Option(id.Id(id.Guild)),
    id.Id(id.Channel),
    option.Option(String),
  ) -> event,
) -> decode.Decoder(event)

CHANNEL_PINS_UPDATE, as guild id, channel id, last pin timestamp.

pub fn thread_delete_decoder(
  build: fn(
    id.Id(id.Channel),
    id.Id(id.Guild),
    option.Option(id.Id(id.Channel)),
    channel.ChannelType,
  ) -> event,
) -> decode.Decoder(event)

THREAD_DELETE, as thread id, guild id, parent id, type. Four keys that the channel decoder would also accept, since a channel needs only two.

Search Document