From 51cf8fd2df3cf7a602d05540627a5ad8af6baa58 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 9 Sep 2020 23:17:26 -0400 Subject: rename and reorder a bunch of discord stuff --- discord/role.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 discord/role.hpp (limited to 'discord/role.hpp') diff --git a/discord/role.hpp b/discord/role.hpp new file mode 100644 index 0000000..79f1038 --- /dev/null +++ b/discord/role.hpp @@ -0,0 +1,19 @@ +#pragma once +#include "snowflake.hpp" +#include "json.hpp" +#include +#include + +struct Role { + Snowflake ID; + std::string Name; + int Color; + bool IsHoisted; + int Position; + int PermissionsLegacy; + uint64_t Permissions; + bool IsManaged; + bool IsMentionable; + + friend void from_json(const nlohmann::json &j, Role &m); +}; -- cgit v1.2.3