From deb482a8db55874a536b6efec366343280214e48 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 19 Nov 2020 19:18:59 -0500 Subject: initial sqlite, store user --- discord/discord.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'discord/discord.hpp') diff --git a/discord/discord.hpp b/discord/discord.hpp index a8729d8..c60f8ad 100644 --- a/discord/discord.hpp +++ b/discord/discord.hpp @@ -59,6 +59,7 @@ public: void Start(); void Stop(); bool IsStarted() const; + bool IsStoreValid() const; using guilds_type = Store::guilds_type; using channels_type = Store::channels_type; @@ -81,7 +82,7 @@ public: void FetchMessagesInChannelBefore(Snowflake channel_id, Snowflake before_id, std::function &)> cb); const Message *GetMessage(Snowflake id) const; const Channel *GetChannel(Snowflake id) const; - const User *GetUser(Snowflake id) const; + std::optional GetUser(Snowflake id) const; const Role *GetRole(Snowflake id) const; const Guild *GetGuild(Snowflake id) const; const GuildMember *GetMember(Snowflake user_id, Snowflake guild_id) const; -- cgit v1.2.3