mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-19 20:11:59 +03:00
edit guild-level permissions for roles
- also reduce db access a little in GetMemberHighestRole
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user