mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-13 20:18:50 +03:00
Restructure source and resource files (#46)
importantly, res is now res/res and css is now res/css
This commit is contained in:
committed by
GitHub
parent
d88079000a
commit
a51a54bc59
14
src/discord/role.cpp
Normal file
14
src/discord/role.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user