summaryrefslogtreecommitdiff
path: root/src/types/reaction_type.zig
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2024-07-20 17:22:25 +0300
committerGravatar Uko Kokņevičs2024-07-20 17:22:25 +0300
commitc70ffd095a6de5cd5b872796a0d82a8c5afc1511 (patch)
tree56183274b05a294e357bad4d06b523472a1c4a4a /src/types/reaction_type.zig
downloadukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.tar.gz
ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.tar.xz
ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.zip
Initial commit
Diffstat (limited to 'src/types/reaction_type.zig')
-rw-r--r--src/types/reaction_type.zig13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/types/reaction_type.zig b/src/types/reaction_type.zig
new file mode 100644
index 0000000..416def9
--- /dev/null
+++ b/src/types/reaction_type.zig
@@ -0,0 +1,13 @@
1const json = @import("../json.zig");
2
3pub const ReactionType = union(enum) {
4 emoji: struct {
5 emoji: []const u8,
6 },
7 custom_emoji: struct {
8 custom_emoji_id: []const u8,
9 },
10
11 pub const jsonParse = json.makeJsonParse(ReactionType);
12 pub const jsonParseFromValue = json.makeJsonParseFromValue(ReactionType);
13};