We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f768cf0 commit 85515f5Copy full SHA for 85515f5
dimscord/objects.nim
@@ -649,6 +649,11 @@ proc newInvite*(data: JsonNode): Invite =
649
proc newInviteCreate*(data: JsonNode): InviteCreate =
650
result = ($data).fromJson(InviteCreate)
651
652
+proc parseHook(s: string, i: var int, v: var set[AttachmentFlags]) {.used.} =
653
+ var number: BiggestInt
654
+ parseHook(s, i, number)
655
+ v = cast[set[AttachmentFlags]](number)
656
+
657
proc parseHook(s: string;
658
i: var int;
659
v: var tuple[id: string, flags: set[ApplicationFlags]]
0 commit comments