mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-13 20:18:50 +03:00
add ability to reorder roles
- some other small tweaks
This commit is contained in:
@@ -526,3 +526,15 @@ struct ModifyGuildRoleObject {
|
||||
|
||||
friend void to_json(nlohmann::json &j, const ModifyGuildRoleObject &m);
|
||||
};
|
||||
|
||||
struct ModifyGuildRolePositionsObject {
|
||||
struct PositionParam {
|
||||
Snowflake ID;
|
||||
std::optional<int> Position; // no idea why this can be optional
|
||||
|
||||
friend void to_json(nlohmann::json &j, const PositionParam &m);
|
||||
};
|
||||
std::vector<PositionParam> Positions;
|
||||
|
||||
friend void to_json(nlohmann::json &j, const ModifyGuildRolePositionsObject &m);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user