summaryrefslogtreecommitdiff
path: root/abaddon.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-08-19 01:13:36 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2020-08-19 01:13:36 -0400
commit69404a97cdf759dcf56bc5b81ef0278080f64156 (patch)
tree7192b69ddb0608bfc9405c586dba3ebb81b3adb9 /abaddon.cpp
parent3c3fe3b9f727c1e398760b139a2ef2da41d3cbda (diff)
downloadabaddon-portaudio-69404a97cdf759dcf56bc5b81ef0278080f64156.tar.gz
abaddon-portaudio-69404a97cdf759dcf56bc5b81ef0278080f64156.zip
populate channel list from READY message and other shit
Diffstat (limited to 'abaddon.cpp')
-rw-r--r--abaddon.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/abaddon.cpp b/abaddon.cpp
index 1979126..00bf202 100644
--- a/abaddon.cpp
+++ b/abaddon.cpp
@@ -64,6 +64,15 @@ std::string Abaddon::GetDiscordToken() const {
return m_discord_token;
}
+const DiscordClient &Abaddon::GetDiscordClient() const {
+ std::scoped_lock<std::mutex> guard(m_mutex);
+ return m_discord;
+}
+
+void Abaddon::DiscordNotifyReady() {
+ m_main_window->UpdateChannelListing();
+}
+
void Abaddon::ActionConnect() {
if (!m_discord.IsStarted())
StartDiscord();