mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-06 20:15:19 +03:00
mostly changing references, which i hope doesnt break stuff with models (TreeRow, iterators) since they gave me some strange problems in the past
24 lines
509 B
C++
24 lines
509 B
C++
#pragma once
|
|
#include "snowflake.hpp"
|
|
#include "json.hpp"
|
|
#include "permissions.hpp"
|
|
#include <string>
|
|
#include <cstdint>
|
|
|
|
struct RoleData {
|
|
Snowflake ID;
|
|
std::string Name;
|
|
int Color;
|
|
bool IsHoisted;
|
|
int Position;
|
|
int PermissionsLegacy;
|
|
Permission Permissions;
|
|
bool IsManaged;
|
|
bool IsMentionable;
|
|
|
|
[[nodiscard]] bool HasColor() const noexcept;
|
|
[[nodiscard]] Glib::ustring GetEscapedName() const;
|
|
|
|
friend void from_json(const nlohmann::json &j, RoleData &m);
|
|
};
|