discord_gleam/ws/packets/guild_role_update
Types
Packet sent by Discord when a role is updated
pub type GuildRoleUpdatePacket {
GuildRoleUpdatePacket(
t: String,
s: Int,
op: Int,
d: GuildRoleUpdatePacketData,
)
}
Constructors
-
GuildRoleUpdatePacket( t: String, s: Int, op: Int, d: GuildRoleUpdatePacketData, )
Values
pub fn string_to_data(
encoded: String,
) -> Result(GuildRoleUpdatePacket, json.DecodeError)