A downloadable tool for Windows, macOS, and Linux

Download NowName your own price

Unity DiscordWebhook is a Unity Tool that allows you to send Discord webhook messages directly from your Unity projects. This package supports sending messages with content, embeds, and attachments such as images and text files.

Features

- Send Discord webhook messages with content, embeds, and attachments.

- Support for image and text file attachments.

- Support for sending multiple embeds and attachments in a single message.

- Easy-to-use API for creating and sending webhook messages.

- Callback support for handling webhook responses. 

- Progress callback when processing requests.

- Discord timestamp conversion utility function. 

- Example code and scenes.


How To Use

- Download unitypackage and import it to your project

- Create and copy webhook url . for more information see [Discord documentation]

- Create webhook object and send!


Code Example

- Simple webhook message

    var webhook = new Webhook()
        .SetAuthor("My Webhook name", "https://avatars.githubusercontent.com/u/34078403?v=4")
        .SetContent("This is a test message :smile:")
        .SendWebhook(myWebhookURl);

- Using Webhooks to send bug reports

    var webhook = new Webhook()
        .SetAuthor("Bug Report Bot")
        .SetContent("USER INPUT")
        .AddAttachment(Application.persistentDataPath + "/player.log", "playerLogFile", "File Attachment")
        .AddImgAttachmentRes("Files/ExampleJpegResourceFile", "myExampleImage", "Image Attachment");
    webhook.SendWebhook(myWebhookURl);

 


See Github Repo for more examples and  documentations 

StatusReleased
CategoryTool
PlatformsWindows, macOS, Linux
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorHuntrox
Tagsaddon, discord, tool, Unity

Download

Download NowName your own price

Click download now to get access to the following files:

UnityDiscordWebhooks_1.0.0.unitypackage 287 kB

Leave a comment

Log in with itch.io to leave a comment.