add ability to reorder roles

- some other small tweaks
This commit is contained in:
ouwou
2021-03-12 01:55:46 -05:00
parent f35dea89f9
commit ae38add931
10 changed files with 313 additions and 19 deletions

View File

@@ -376,3 +376,12 @@ void to_json(nlohmann::json &j, const ModifyGuildRoleObject &m) {
if (m.Permissions.has_value())
j["permissions"] = std::to_string(static_cast<uint64_t>(*m.Permissions));
}
void to_json(nlohmann::json &j, const ModifyGuildRolePositionsObject::PositionParam &m) {
j["id"] = m.ID;
JS_IF("position", m.Position);
}
void to_json(nlohmann::json &j, const ModifyGuildRolePositionsObject &m) {
j = m.Positions;
}