• Resolved michaelmenial

    (@michaelmenial)


    Many thanks for the plugin

    Can you maybe advise how to correctly add the variables within “Embed format”?

    Currently I have the following (which is working):

    {
        "content": ":loudspeaker: **Neuer Beitrag auf brettspielestammtisch.de**",
        "embeds": [
            {
                "title": "%title%",
                "url": "%link%",
                "author": {
                    "name": "%author%",
                    "url": "%author_url%",
                    "icon_url": "%gravatar%"
                }
            }
        ]
    }
    

    If I try to add for example “category” it is not shown in discord when I post a new entry

    {
        "content": ":loudspeaker: **Neuer Beitrag auf brettspielestammtisch.de**",
        "embeds": [
            {
                "title": "%title%",
                "category": "%category%",
                "url": "%link%",
                "author": {
                    "name": "%author%",
                    "url": "%author_url%",
                    "icon_url": "%gravatar%"
                }
            }
        ]
    }

    In https://leovoel.github.io/embed-visualizer/ I also get the following error message:
    Unrecognized property “category” in “embeds[0]”

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author JINXRAT

    (@jinxrat)

    The category variable must be used in the title or content only.

    Plugin Author JINXRAT

    (@jinxrat)

    If the field does not exist in the embed visualizer, it may not exist in discord api.

    Plugin Author JINXRAT

    (@jinxrat)

    You can do this:

    {
       "content":":loudspeaker: **Neuer Beitrag auf brettspielestammtisch.de**",
       "embeds":[
          {
             "title":"%title%",
             "url":"%link%",
             "author":{
                "name":"%author%",
                "url":"%author_url%",
                "icon_url":"%gravatar%"
             },
             "fields":[
                {
                   "name":"Category",
                   "value":"%category%"
                }
             ]
          }
       ]
    }
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to cucorrectly add the variables within “Embed format”?’ is closed to new replies.