Formats the json response
This commit is contained in:
parent
d7827a4531
commit
62cc9e0587
|
@ -261,8 +261,10 @@ namespace BiblioTech.Commands
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var info = node.GetDebugInfo();
|
var info = node.GetDebugInfo();
|
||||||
var json = JsonConvert.SerializeObject(info);
|
var nl = Environment.NewLine;
|
||||||
await context.AdminFollowup($"Node '{node.GetName()}' responded with '{json}'");
|
var json = JsonConvert.SerializeObject(info, Formatting.Indented);
|
||||||
|
var jsonInsert = $"{nl}```{nl}{json}{nl}```{nl}";
|
||||||
|
await context.AdminFollowup($"Node '{node.GetName()}' responded with {jsonInsert}");
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue