diff options
author | Dylam De La Torre <DyXel04@gmail.com> | 2021-11-23 05:21:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 04:21:56 +0000 |
commit | a51a54bc5979a2491f152abc47ad54e6b63f27c8 (patch) | |
tree | ce67092b2f6df366033a65a6111e4650866766b2 /discord/member.hpp | |
parent | d88079000a79e6bcbe51c5a2868d57b303b5fcb6 (diff) | |
download | abaddon-portaudio-a51a54bc5979a2491f152abc47ad54e6b63f27c8.tar.gz abaddon-portaudio-a51a54bc5979a2491f152abc47ad54e6b63f27c8.zip |
Restructure source and resource files (#46)
importantly, res is now res/res and css is now res/css
Diffstat (limited to 'discord/member.hpp')
-rw-r--r-- | discord/member.hpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/discord/member.hpp b/discord/member.hpp deleted file mode 100644 index e17da05..0000000 --- a/discord/member.hpp +++ /dev/null @@ -1,27 +0,0 @@ -#pragma once -#include "snowflake.hpp" -#include "json.hpp" -#include "user.hpp" -#include "role.hpp" -#include <string> -#include <vector> - -struct GuildMember { - std::optional<UserData> User; // only reliable to access id. only opt in MESSAGE_* - std::string Nickname; - std::vector<Snowflake> Roles; - std::string JoinedAt; - std::optional<std::string> PremiumSince; // null - bool IsDeafened; - bool IsMuted; - std::optional<Snowflake> UserID; // present in merged_members - std::optional<bool> IsPending; // this uses `pending` not `is_pending` - - // undocuemtned moment !!!1 - std::optional<std::string> Avatar; - - std::vector<RoleData> GetSortedRoles() const; - - void update_from_json(const nlohmann::json &j); - friend void from_json(const nlohmann::json &j, GuildMember &m); -}; |