/// <summary> /// Adds new channels to the context /// </summary> /// <param name="context">The database context</param> private static void RegisterNewChannels(DatabaseContext context) { while (_queueAddedChannels.TryDequeue(out SocketTextChannel? c)) { if (c != null) { Logger.Info($"Registering channel '{c.Guild.Name}/{c.Name}'"); ChannelAdapter.EnableChannel(context, c); } } }