mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-19 20:11:59 +03:00
rename and reorder a bunch of discord stuff
This commit is contained in:
15
discord/role.cpp
Normal file
15
discord/role.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "role.hpp"
|
||||
|
||||
void from_json(const nlohmann::json &j, Role &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);
|
||||
JS_D("permissions", m.PermissionsLegacy);
|
||||
std::string tmp;
|
||||
JS_D("permissions_new", tmp);
|
||||
m.Permissions = std::stoull(tmp);
|
||||
JS_D("managed", m.IsManaged);
|
||||
JS_D("mentionable", m.IsMentionable);
|
||||
}
|
||||
Reference in New Issue
Block a user