Skip to content

Message Formatting

karma.meme edited this page Jan 2, 2022 · 3 revisions


How to format message.json correctly

Message example without embeds (config.json):

{
  "send_embed": false,
  "send_normal_message": true,
  "blacklisted_roles": ["132324335", "535424242424", "43527181817"],
  "blacklisted_users": ["6625345642642", "7354542"]
}

Message example with embeds but no embed fields (message.json):

{
    "content" : "Hi Fellow Discord User \nThis is an example message! Use \nto change lines.\nYou can use <user> for mentioning the user",
    "embeds":
        [{
          "type": "rich",
          "title": "This can be a link",
          "description": "You can have embeds however you like them. As long as you send them in the correct format, they will be sent!\nYou can mention the user inside the embed too: <user>",
          "color": 3348893,
          "fields": [],
          "image": {
            "url": "https://i.imgur.com/RCBBege.png",
            "height": 0,
            "width": 0
          },
          "author": {
            "name": "Use this website to make your Embed easily. ",
            "url": "https://autocode.com/tools/discord/embed-builder/",
            "icon_url": "https://i.imgur.com/RCBBege.png"
          },
          "url": "https://github.com/hoemotion"
        }]
      
}

if you do this for having no embed fields (message.json):

"fields": [
            {
              "name": "",
              "value": "",
              "inline": true
            }]

your message won't be sent and you will receive the error code 50035 (invalid form body)


Contact

View dropout's contact information on his website
View my contact information on my website

Clone this wiki locally