A Godot api to send messages via a discord web hook
MIT License
[!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
# In res://Node.gd
func _ready() -> void:
pass
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")
# 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()