private async Task channelDestroyed(SocketChannel arg) { var channel = arg as SocketGuildChannel; var guildId = channel.Guild.Id; var channelId = channel.Id; //remove birthdaychannel if applicable Birthday.removeBirthdayChannel(channelId, guildId); //remove idol birthday channel IdolBirthday.removeIdolBirthdayChannel(channelId, guildId); //remove logging channel Logging.removeLoggingChannel(channelId, guildId); }
private async Task startThreads() { if (startedThreads == false) { startedThreads = true; Console.WriteLine("Starting threads"); idolBirthdays = new IdolBirthday(_client); userBirthdays = new Birthday(_client); idolBirthdays.run(); userBirthdays.run(); //initialise logging Logging.init(_client); } }