using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Discord.WebSocket;
using Newtonsoft.Json.Linq;
namespace Noikoio.RegexBot.Feature.DBCache
{
///
/// Caches information regarding all incoming messages and all known guilds, channels, and users.
/// The function of this feature should be transparent to the user, and thus no configuration is needed.
///
class DBCache : BotFeature
{
public override string Name => "Database cache";
public DBCache(DiscordSocketClient client) : base(client)
{
client.GuildAvailable += Client_GuildAvailable;
client.GuildUpdated += Client_GuildUpdated;
client.GuildMemberUpdated += Client_GuildMemberUpdated;
client.MessageReceived += Client_MessageReceived;
client.MessageUpdated += Client_MessageUpdated;
}
public override Task