public async Task ConnectToTwitchAsync() { if (Context.GuildSettings.TwitchSettings == null) { await ReplyAsync($"Please set a channel before connecting to it with {Context.GuildSettings.CommandPrefix}SetChannel."); return; } _twitchManager.TryLeaveTwitchChannel(Context.GuildSettings.TwitchSettings.ChannelName); Context.GuildSettings.TwitchSettings.DiscordChatChannel = new DiscordChannel(Context.Channel.Id, Context.Channel.Name); Context.GuildSettings.StreamMessages = true; _twitchManager.JoinTwitchChannel(Context.GuildSettings.TwitchSettings.ChannelName); await ReplyAsync("Successfully connected."); }