Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Godot Discord WebHook

An asset by lsbt
The page banner background of a mountain and forest
Godot Discord WebHook thumbnail image
Godot Discord WebHook thumbnail image
Godot Discord WebHook hero image

Quick Information

0 ratings
Godot Discord WebHook icon image
lsbt
Godot Discord WebHook

Easily send webhooks to your discord server from Godot.

Supported Engine Version
4.2
Version String
1.1
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Welcome to GodotDiscordWebHooks

[!WARNING] Be sure to check the unsupported features to ensure that you can use this plugin efficiently.

Checkout the api in action

Check the docs

Check the docs

Getting started

  1. To get started with GodotDiscordWebHooks install this plugin either from downloading / cloning the GitHub repository.
  2. Get a webhook url if you haven't already.
  3. Next you can create your first message

My first message

  1. After installing the files for GodotDiscordWebHooks, create a scene and attach a node to the root.
  2. Open the script and create a _ready() function.
# In res://Node.gd
func  _ready() -> void:
   pass
  1. Create a webhook object to send content and change the webhooks username. Remember to replace WEBHOOK_URL with your webhook's url. Get a webhook url if you haven't already.
# In res://Node.gd
func _read() -> void:
    var webhook := DiscordWebHook.new(WEBHOOK_URL)
    webhook.message("Hello from godot!")
    webhook.username("A robot")
    # DiscordWebHook allows chaining so the above code can also be written as:
    # webhook.message("Hello from godot!").username("A robot")
  1. Finally, we post the message, for this introduction we won't be doing anything with the response so we won't cast it
# In res://Node.gd
func _read() -> void:
    var webhook := DiscordWebHook.new(WEBHOOK_URL)
    webhook.message("Hello from godot!")
    webhook.username("A robot")

    # Post the message
    await webhook.post()

Get a webhook url

  1. README Screenshot 2024-06-12 153035
  2. README CreateWebhook
  3. README GettingWebhookUrl

Api in action

README Screenshot 2024-06-14 040147 README Screenshot 2024-06-14 040403

Easily send webhooks to your discord server from Godot.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Godot Discord WebHook icon image
lsbt
Godot Discord WebHook

Easily send webhooks to your discord server from Godot.

Supported Engine Version
4.2
Version String
1.1
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers