Skip to content

Build with SQF

Connor edited this page Mar 1, 2019 · 1 revision

You can build entire messages in SQF if you prefer that to configs. I suggest only using it for simple messages, however the system has full support for all the same settings as config templates so you can do what you like.

SQF Examples

[
    "webhook identifier", // CfgDiscordEmbedWebhooks
    "message",
    "title",
    "avatar url",
    false, // tts
    [ // Maximum 10 embeds per message
        [
            "embed title",
            "embed description",
            "url",
            "00FF00", // color RGB
            true,     // use timestamp
            "thumbnail url",
            "image url",
            [
                "author name",
                "author url",
                "author image"
            ],
            [
                "footer text",
                "footer image"
            ],
            [ // Maximum 25 fields per embed
                [
                    "field title",
                    "field content",
                    true  // inline
                ],
                [ /* another field */ ],
                [ /* another field */ ],
                [ /* another field */ ],
                [ /* another field */ ]
            ]
        ],
        [ /* another embed */ ],
        [ /* another embed */ ]
    ]
] call DiscordEmbedBuilder_fnc_buildSqf;
Clone this wiki locally