Jump to content
sale $39.99  $31.99

Discord Message API 0.0.1

   (0 reviews)

1 Screenshot

  • 488
  • 20
  • 16.71 kB
 Share

About Discord Message API

  

For developers only.

SendDiscordMessage(string webhook, string content, string username, string avatarUrl, object[][] embedsArray)

 

Examples:

Interface.CallHook(
    "SendDiscordMessage",                                                                                                       // DiscordMessageAPI hook
    "https://discord.com/api/webhooks/000000000000000000/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", // Webhook (string)
    "Message text content."                                                                                                     // Message content (string)
);

 

object[] messageArray = new object[]                                                                                        // Message Array
{
    "https://discord.com/api/webhooks/000000000000000000/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", // Webhook (string)
    "Message text content.",                                                                                                    // Content (string)
    "Username",                                                                                                                 // Username (string)
    "https://i.imgur.com/y28bSZi.png",                                                                                          // Avatar URL (string)
    new object[][]                                                                                                              // Embeds (object[][])
    {
        new object[]                                                                                                                // Embed0 (object[])
        {
            "Embed0 author name",                                                                                                       // Author name (string)
            "https://facepunch.com/",                                                                                                   // Author URL (string)
            "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Facepunchtransparent.png/440px-Facepunchtransparent.png",        // Author icon URL (string)
            "Embed0 title",                                                                                                             // Title (string)
            "https://rust.facepunch.com/",                                                                                              // URL (string)
            "Embed0 description",                                                                                                       // Description (string)
            15548997,                                                                                                                   // Color (int)
            "Embed0 footer text",                                                                                                       // Footer text (string)
            "https://upload.wikimedia.org/wikipedia/commons/9/9f/Rust_logo.png",                                                        // Footer icon URL (string)
            new object[][]                                                                                                              // Fields (object[][])
            {
                new object[]                                                                                                                // Field0 (object[])
                {
                    "Field0-Embed0 Name",                                                                                                       // Name (string)
                    "Field0-Embed0 Value",                                                                                                      // Value (string)
                    false                                                                                                                       // Inline (bool)
                },
                new object[]                                                                                                                // Field1 (object[])
                {
                    "Field1-Embed0 Name",                                                                                                       // Name (string)
                    "Field1-Embed0 Value",                                                                                                      // Value (string)
                    false                                                                                                                       // Inline (bool)
                },
                new object[]                                                                                                                // Field2 (object[])
                {
                    "Field2-Embed0 Name",                                                                                                       // Name (string)
                    "Field2-Embed0 Value",                                                                                                      // Value (string)
                    false                                                                                                                       // Inline (bool)
                }
            },
            "https://i.imgur.com/Clv8xfd.png",                                                                                          // Thumbnail URL (string)
            "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Facepunchtransparent.png/440px-Facepunchtransparent.png"         // Image URL (string)
        },
        new object[]                                                                                                                // Embed0 (object[])
        {
            "Embed1 author name",                                                                                                       // Author name (string)
            "https://rust.facepunch.com/",                                                                                              // Author URL (string)
            "https://i.imgur.com/Clv8xfd.png",                                                                                          // Author icon URL (string)
            "Embed1 title",                                                                                                             // Title (string)
            "https://facepunch.com/",                                                                                                   // URL (string)
            "Embed1 description",                                                                                                       // Description (string)
            5793266,                                                                                                                    // Color (int)
            "Embed1 footer text",                                                                                                       // Footer text (string)
            "https://i.imgur.com/2uEAWXZ.png",                                                                                          // Footer icon URL (string)
            new object[][]                                                                                                              // Fields (object[][])
            {
                new object[]                                                                                                                // Field0 (object[])
                {
                    "Field0-Embed1 Name",                                                                                                       // Name (string)
                    "Field0-Embed1 Value",                                                                                                      // Value (string)
                    false                                                                                                                       // Inline (bool)
                },
                new object[]                                                                                                                // Field1 (object[])
                {
                    "Field1-Embed1 Name",                                                                                                       // Name (string)
                    "Field1-Embed1 Value",                                                                                                      // Value (string)
                    false                                                                                                                       // Inline (bool)
                },
                new object[]                                                                                                                // Field2 (object[])
                {
                    "Field2-Embed1 Name",                                                                                                       // Name (string)
                    "Field2-Embed1 Value",                                                                                                      // Value (string)
                    false                                                                                                                       // Inline (bool)
                }
            },
            "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Facepunchtransparent.png/440px-Facepunchtransparent.png",        // Thumbnail URL (string)
            "https://upload.wikimedia.org/wikipedia/commons/9/9f/Rust_logo.png"                                                         // Image URL (string)
        }
    }
};

Interface.CallHook("SendDiscordMessage", messageArray);
 Share


User Feedback

354.3k

Downloads

Total number of downloads.

1.8k

Customers

Total customers served.

24.4k

Files Sold

Total number of files sold.

380.3k

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.