mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-06 20:15:19 +03:00
Merge pull request #39 from Zander671/master
Fix another unchecked optional
This commit is contained in:
@@ -173,7 +173,8 @@ void DiscordClient::FetchMessagesInChannelBefore(Snowflake channel_id, Snowflake
|
||||
m_store.BeginTransaction();
|
||||
for (auto &msg : msgs) {
|
||||
StoreMessageData(msg);
|
||||
AddUserToGuild(msg.Author.ID, *msg.GuildID);
|
||||
if (msg.GuildID.has_value())
|
||||
AddUserToGuild(msg.Author.ID, *msg.GuildID);
|
||||
}
|
||||
m_store.EndTransaction();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user