#Embed.AddField Freezes Bot Interaction

1 messages · Page 1 of 1 (latest)

reef canyon
#

Im making a Bot that displays a Checklist based on a Trello Board (which all works fine), but for some reason the Interaction the function stops after / before i put an embed.AddField line

foreach(string checklistId in card.idChecklists)
{
    var checkList = Utils.TrelloClient.GetCheckListFrom(checklistId);
    string checkListContent = "";
    foreach(var checkListEntry in checkList.checkItems)
    {
        string state = "☐";
        if(checkListEntry.state != "incomplete") { state = "☑"; }
        checkListContent += $"{state} {checkListEntry.name}\n";
    }
    embed.AddField(checkList.name.ToString(), checkListContent); // This is where it freezes
}
thin shadow
#

try catch?

reef canyon
#

I'll check later

reef canyon
#

ughhh

#

i thought the limit per field is like 4k or smth

thin shadow
#

field name is 256
value is 1024

reef canyon
slate parrotBOT
#

Successsfully created the Embed Limits tag.

reef canyon
#

what.

slate parrotBOT
#

Title 256 characters
Description 4096 characters
Fields Up to 25 field objects
Field.Name 256 characters
Field.Value 1024 characters
Footer.Text 2048 characters
Author.Name 256 characters

thin shadow
#

bru

#

whatever

#

so here are the limits

reef canyon