diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-04-15 20:28:11 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-04-15 20:28:11 -0400 |
commit | 870f05062a87444ee58436e8d12ba3702073eb8e (patch) | |
tree | 47eeecbf5056d06b0a09a8fbe9a01123737bd738 /src/discord/discord.cpp | |
parent | 02fd49b0736f74cc22dc3c9b16d904334d017dce (diff) | |
download | abaddon-portaudio-870f05062a87444ee58436e8d12ba3702073eb8e.tar.gz abaddon-portaudio-870f05062a87444ee58436e8d12ba3702073eb8e.zip |
store stage instances on connect
Diffstat (limited to 'src/discord/discord.cpp')
-rw-r--r-- | src/discord/discord.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/discord/discord.cpp b/src/discord/discord.cpp index 40af498..b3f8ca6 100644 --- a/src/discord/discord.cpp +++ b/src/discord/discord.cpp @@ -1720,6 +1720,13 @@ void DiscordClient::ProcessNewGuild(GuildData &guild) { return; } + if (guild.StageInstances.has_value()) { + for (const auto &stage : *guild.StageInstances) { + m_stage_instances[stage.ID] = stage; + m_channel_to_stage_instance[stage.ChannelID] = stage.ID; + } + } + m_store.BeginTransaction(); m_store.SetGuild(guild.ID, guild); |