blob: f1cd5ea20fd73c24ef3a4a58952a9fa9d94e22b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#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);
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);
}
|