From 69404a97cdf759dcf56bc5b81ef0278080f64156 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 19 Aug 2020 01:13:36 -0400 Subject: populate channel list from READY message and other shit --- abaddon.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'abaddon.cpp') 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 guard(m_mutex); + return m_discord; +} + +void Abaddon::DiscordNotifyReady() { + m_main_window->UpdateChannelListing(); +} + void Abaddon::ActionConnect() { if (!m_discord.IsStarted()) StartDiscord(); -- cgit v1.2.3