Example #1
0
 internal static async Task DeleteGuildConfig(SocketGuild Guild)
 {
     if (GuildHandler.GuildConfigs.ContainsKey(Guild.Id))
     {
         GuildHandler.GuildConfigs.Remove(Guild.Id);
     }
     await GuildHandler.SaveAsync(GuildHandler.GuildConfigs);
 }
Example #2
0
        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);
        }