Files
abaddon/src/discord/role.hpp
ouwou 49685c3989 fix up a bunch of clang-tidy stuff
mostly changing references, which i hope doesnt break stuff with models (TreeRow, iterators) since they gave me some strange problems in the past
2022-04-05 22:01:53 -04:00

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);
};