mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-06 20:15:19 +03:00
edit guild-level permissions for roles
- also reduce db access a little in GetMemberHighestRole
This commit is contained in:
@@ -367,3 +367,12 @@ void from_json(const nlohmann::json &j, RelationshipsData &m) {
|
||||
void to_json(nlohmann::json &j, const ModifyGuildMemberObject &m) {
|
||||
JS_IF("roles", m.Roles);
|
||||
}
|
||||
|
||||
void to_json(nlohmann::json &j, const ModifyGuildRoleObject &m) {
|
||||
JS_IF("name", m.Name);
|
||||
JS_IF("color", m.Color);
|
||||
JS_IF("hoist", m.IsHoisted);
|
||||
JS_IF("mentionable", m.Mentionable);
|
||||
if (m.Permissions.has_value())
|
||||
j["permissions"] = std::to_string(static_cast<uint64_t>(*m.Permissions));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user