Discord webhooks
If you need to send a Discord message with an embed, use Webhook.
Webhook("https://discord.com/api/webhooks/...")
.setMessage("Something happened!")
.setUsername("Server Bot")
.addEmbed(
Webhook.Embed()
.setTitle("Player joined")
.setDescription("${player.name} joined the server")
.setColor(0x00FF00)
)
.send()
For a quick one-liner without embeds, Logger.log(webhookURL, message) still works too.