edit guild-level permissions for roles

- also reduce db access a little in GetMemberHighestRole
This commit is contained in:
ouwou
2021-03-07 01:34:08 -05:00
parent 9186a4f3f5
commit f1746bbeea
10 changed files with 642 additions and 48 deletions

View File

@@ -514,3 +514,13 @@ struct ModifyGuildMemberObject {
friend void to_json(nlohmann::json &j, const ModifyGuildMemberObject &m);
};
struct ModifyGuildRoleObject {
std::optional<std::string> Name;
std::optional<Permission> Permissions;
std::optional<int> Color;
std::optional<bool> IsHoisted;
std::optional<bool> Mentionable;
friend void to_json(nlohmann::json &j, const ModifyGuildRoleObject &m);
};