new

Creates a new DiscordWebhook instance.

DiscordWebhook.new(webhookId, webhookToken)

Example usage:

local Stellar = shared.Stellar
local DiscordWebhook = Stellar.Get("DiscordWebhook")
local Webhook = DiscordWebhook.new("458454860", "rufjkehturidjfb4hiej876tg")

Webhook:Send({
    content = "test",
})

Last updated