summaryrefslogtreecommitdiff
path: root/discord/invite.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'discord/invite.hpp')
-rw-r--r--discord/invite.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/discord/invite.hpp b/discord/invite.hpp
new file mode 100644
index 0000000..486ecad
--- /dev/null
+++ b/discord/invite.hpp
@@ -0,0 +1,15 @@
+#pragma once
+#include "json.hpp"
+#include "guild.hpp"
+#include <string>
+
+class Invite {
+public:
+ std::string Code; //
+ Guild Guild; // opt
+ Channel Channel; // opt
+ User Inviter; // opt
+ int Members = -1; // opt
+
+ friend void from_json(const nlohmann::json &j, Invite &m);
+};