Example #1
0
 private async Task InitailizeVoiceChannelTracker(SocketGuild guild)
 {
     _discord.UserVoiceStateUpdated -= HandleVoiceStateChanged;
     _discord.UserVoiceStateUpdated += HandleVoiceStateChanged;
     _announcementChannel            = guild.GetChannelByName(_settings.AnnouncementChannelName);
     await DeleteOldMessages();
 }