Server
sendWebhook
Usage
Lib.sendWebhook(url, data)
url:
string
data:
object
color(optional):
string(hex)
timestamp(optional):
boolean
content(optional):
string
title(optional):
string
url(optional):
string
author(optional):
object
name(optional):
string
icon_url(optional):
string
url(optional):
string
description(optional):
string
thumbnail(optional):
object
url:
string
fields(optional):
array
name:
string
value:
string
inline:
boolean
image(optional):
object
url:
string
footer(optional):
object
text(optional):
string
icon_url(optional):
string
Example
Lib.sendWebhook("discord_webhook_url", {
color = "#00f0be",
timestamp = true,
title = "Test",
content = "@everyone",
})
Last updated