internal static async Task DeleteGuildConfig(SocketGuild Guild) { if (GuildHandler.GuildConfigs.ContainsKey(Guild.Id)) { GuildHandler.GuildConfigs.Remove(Guild.Id); } await GuildHandler.SaveAsync(GuildHandler.GuildConfigs); }
internal static async Task HandleGuildConfigAsync(SocketGuild Guild) { var CreateConfig = new GuildModel(); if (!GuildHandler.GuildConfigs.ContainsKey(Guild.Id)) { GuildHandler.GuildConfigs.Add(Guild.Id, CreateConfig); } await GuildHandler.SaveAsync(GuildHandler.GuildConfigs); }