diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-08-19 01:13:36 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-08-19 01:13:36 -0400 |
commit | 69404a97cdf759dcf56bc5b81ef0278080f64156 (patch) | |
tree | 7192b69ddb0608bfc9405c586dba3ebb81b3adb9 /abaddon.cpp | |
parent | 3c3fe3b9f727c1e398760b139a2ef2da41d3cbda (diff) | |
download | abaddon-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.cpp | 9 |
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(); |