From a8630f53b1b391cd2851955aa7585c53a996edd6 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 24 Sep 2020 02:43:27 -0400 Subject: put PermissionOverwrite in the store where it belongs --- discord/discord.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'discord/discord.hpp') diff --git a/discord/discord.hpp b/discord/discord.hpp index f9af928..596228d 100644 --- a/discord/discord.hpp +++ b/discord/discord.hpp @@ -59,6 +59,7 @@ public: using users_type = Store::users_type; using roles_type = Store::roles_type; using members_type = Store::members_type; + using permission_overwrites_type = Store::permission_overwrites_type; std::unordered_set GetGuildsID() const; const guilds_type &GetGuilds() const; @@ -78,6 +79,7 @@ public: const Role *GetRole(Snowflake id) const; const Guild *GetGuild(Snowflake id) const; const GuildMember *GetMember(Snowflake user_id, Snowflake guild_id) const; + const PermissionOverwrite *GetPermissionOverwrite(Snowflake channel_id, Snowflake id) const; Snowflake GetMemberHoistedRole(Snowflake guild_id, Snowflake user_id, bool with_color = false) const; std::unordered_set GetUsersInGuild(Snowflake id) const; std::unordered_set GetRolesInGuild(Snowflake id) const; -- cgit v1.2.3