summaryrefslogtreecommitdiff
path: root/discord/role.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'discord/role.cpp')
-rw-r--r--discord/role.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/discord/role.cpp b/discord/role.cpp
deleted file mode 100644
index 07a912e..0000000
--- a/discord/role.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-#include "role.hpp"
-
-void from_json(const nlohmann::json &j, RoleData &m) {
- JS_D("id", m.ID);
- JS_D("name", m.Name);
- JS_D("color", m.Color);
- JS_D("hoist", m.IsHoisted);
- JS_D("position", m.Position);
- std::string tmp;
- JS_D("permissions", tmp);
- m.Permissions = static_cast<Permission>(std::stoull(tmp));
- JS_D("managed", m.IsManaged);
- JS_D("mentionable", m.IsMentionable);
-}