discord_gleam/ws/packets/channel_create

Types

Packet sent by Discord when a channel is created

pub type ChannelCreatePacket {
  ChannelCreatePacket(
    t: String,
    s: Int,
    op: Int,
    d: channel.Channel,
  )
}

Constructors

Values

pub fn string_to_data(
  encoded: String,
) -> Result(ChannelCreatePacket, json.DecodeError)
Search Document