discord_gleam/ws/packets/guild_members_chunk
Types
pub type GuildMembersChunkPacket {
GuildMembersChunkPacket(
t: String,
s: Int,
op: Int,
d: GuildMembersChunkPacketData,
)
}
Constructors
-
GuildMembersChunkPacket( t: String, s: Int, op: Int, d: GuildMembersChunkPacketData, )
pub type GuildMembersChunkPacketData {
GuildMembersChunkPacketData(
guild_id: snowflake.Snowflake(snowflake.Guild),
members: List(guild_member.GuildMember),
chunk_index: Int,
chunk_count: Int,
not_found: option.Option(
List(snowflake.Snowflake(snowflake.User)),
),
presences: option.Option(List(presence.Presence)),
nonce: option.Option(String),
)
}
Constructors
-
GuildMembersChunkPacketData( guild_id: snowflake.Snowflake(snowflake.Guild), members: List(guild_member.GuildMember), chunk_index: Int, chunk_count: Int, not_found: option.Option( List(snowflake.Snowflake(snowflake.User)), ), presences: option.Option(List(presence.Presence)), nonce: option.Option(String), )
Values
pub fn from_json_string(
encoded: String,
) -> Result(GuildMembersChunkPacket, json.DecodeError)