From 277c983cb442107fcdead78f32623a2dcc836d8d Mon Sep 17 00:00:00 2001 From: Nicolas Date: Thu, 7 Nov 2024 02:18:30 -0300 Subject: [PATCH] un pad de 7 y arreglado --- lib/websocket.zig | 1 + lib/zig-tls12 | 1 + lib/zmpl | 1 + src/shard.zig | 2 +- src/types.zig | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) create mode 160000 lib/websocket.zig create mode 160000 lib/zig-tls12 create mode 160000 lib/zmpl diff --git a/lib/websocket.zig b/lib/websocket.zig new file mode 160000 index 0000000..e93fa52 --- /dev/null +++ b/lib/websocket.zig @@ -0,0 +1 @@ +Subproject commit e93fa527f1d4deaeda5f74f51efaf7ec60cab396 diff --git a/lib/zig-tls12 b/lib/zig-tls12 new file mode 160000 index 0000000..56153d0 --- /dev/null +++ b/lib/zig-tls12 @@ -0,0 +1 @@ +Subproject commit 56153d0f9f4551c7031b3b536845e90d23250d01 diff --git a/lib/zmpl b/lib/zmpl new file mode 160000 index 0000000..ef3242f --- /dev/null +++ b/lib/zmpl @@ -0,0 +1 @@ +Subproject commit ef3242ff5c19ba7db8d272e52d87afe249bbb42e diff --git a/src/shard.zig b/src/shard.zig index 5799a3c..6949e51 100644 --- a/src/shard.zig +++ b/src/shard.zig @@ -551,7 +551,7 @@ pub fn handleEvent(self: *Self, name: []const u8, payload: []const u8) !void { .bot = null, .redirect_uris = null, .interactions_endpoint_url = null, - .flags = @as(Discord.ApplicationFlags, @bitCast(@as(u25, @intCast(app.getT(.integer, "flags").?)))), + .flags = @as(Discord.ApplicationFlags, @bitCast(@as(u32, @intCast(app.getT(.integer, "flags").?)))), .id = try Shared.Snowflake.fromRaw(app.getT(.string, "id").?), } else null, }; diff --git a/src/types.zig b/src/types.zig index c70c536..cf4043d 100644 --- a/src/types.zig +++ b/src/types.zig @@ -301,6 +301,7 @@ pub const ApplicationFlags = packed struct { _pad2: u4 = 0, /// Indicates if an app has registered global application commands ApplicationCommandBadge: bool = false, + _pad3: u7, }; /// https://discord.com/developers/docs/interactions/message-components#component-types