add ability to reorder roles

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

No files matched your search

+9
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;
}