using System.Text.Json.Serialization; namespace Discord.API; [JsonSourceGenerationOptions(IgnoreReadOnlyFields = false, IgnoreReadOnlyProperties = false, IncludeFields = true, PropertyNamingPolicy = JsonKnownNamingPolicy.SnakeCaseLower, Converters = [ typeof(GatewayPacketConverter), typeof(UnavailableGuildDataConverter), typeof(GuildDataConverter) ], NumberHandling = JsonNumberHandling.AllowReadingFromString )] [JsonSerializable(typeof(GatewayPacket))] [JsonSerializable(typeof(Rest.GetGatewayResponse))] [JsonSerializable(typeof(Rest.RestError))] internal partial class SourceGenerationContext : JsonSerializerContext { }