Exemplo n.º 1
0
    public async Task UpdateDatabase()
    {
        const string checkingString = "Checking for role updates...";
        IUserMessage msg            = await ReplyAsync(checkingString);

        (string message, Embed[] roleUpdateEmbeds) = await _updateRolesHelper.UpdateRolesAndDb(Context.Guild.Users);

        await msg.ModifyAsync(m => m.Content = $"{checkingString}\n{message}");

        for (int i = 0; i < roleUpdateEmbeds.Length; i++)
        {
            await ReplyAsync(null, false, roleUpdateEmbeds[i]);
        }
    }