summaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-11-13 03:09:17 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2021-11-13 03:09:17 -0500
commit108002248c0739078302e00d5ca224a44b93ea56 (patch)
tree4aa3f44d896e5c32fd703e07ad3ee39c786a7cbd /discord
parent43795f4c875472d5d12276e32b0c9d1bd5788912 (diff)
downloadabaddon-portaudio-108002248c0739078302e00d5ca224a44b93ea56.tar.gz
abaddon-portaudio-108002248c0739078302e00d5ca224a44b93ea56.zip
presence of ThreadMember means user added to private thread
Diffstat (limited to 'discord')
-rw-r--r--discord/discord.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/discord.cpp b/discord/discord.cpp
index c494145..b4a5f92 100644
--- a/discord/discord.cpp
+++ b/discord/discord.cpp
@@ -1762,6 +1762,9 @@ void DiscordClient::HandleGatewayThreadCreate(const GatewayMessage &msg) {
ThreadCreateData data = msg.Data;
m_store.SetChannel(data.Channel.ID, data.Channel);
m_signal_thread_create.emit(data.Channel);
+ if (data.Channel.ThreadMember.has_value()) {
+ m_signal_added_to_thread.emit(data.Channel.ID);
+ }
}
void DiscordClient::HandleGatewayThreadDelete(const GatewayMessage &msg) {