Example #1
0
        async Task AttemptRebuildVoiceRegisteredGuildDataAsync(DiscordClient client)
        {
            string error;

            if ((error = await guildDataReference.RebuildDeserializedDataFromClient(client)) == string.Empty)
            {
                client.Logger.Log(LogLevel.Information, "Data deserialized from disk");
                return;
            }

            //log the error
            client.Logger.Log(LogLevel.Information, error);
        }