public async Task GetModAction(SocketGuildUser user) { try { var sb = new StringBuilder(); foreach (var action in (await _ms.GetModerationActionsAsync(Context.Guild.Id))) { sb.Append($"{action.Type.ToString()}\n"); } var embed = new EmbedBuilder() .WithTitle($"Current moderation action for {user}:") .WithColor(_misc.RandomColor()) .WithThumbnailUrl(user.GetAvatarUrl(size: 512)) .WithCurrentTimestamp() .WithDescription(sb.ToString()); await ReplyAsync(embed : embed.Build()); } catch (Exception e) { await ReplyAsync(embed : (await _misc.GenerateErrorMessage(e)).Build()); } }