forked from OpenGamers/abaddon
basic permission handling + use for edit/delete
This commit is contained in:
@@ -9,7 +9,7 @@ void from_json(const nlohmann::json &j, Role &m) {
|
||||
JS_D("permissions", m.PermissionsLegacy);
|
||||
std::string tmp;
|
||||
JS_D("permissions_new", tmp);
|
||||
m.Permissions = std::stoull(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