discord_gleam/ws/packets/channel_create
Types
pub type ChannelCreatePacket {
ChannelCreatePacket(
t: String,
s: Int,
op: Int,
d: channel.Channel,
)
}
Constructors
-
ChannelCreatePacket( t: String, s: Int, op: Int, d: channel.Channel, )
Functions
pub fn string_to_data(
encoded: String,
) -> Result(ChannelCreatePacket, DecodeError)