Server
DiscordMsg
Function to send a message into a discord server via discord webhook
function HRLib.DiscordMsg(
webHook: string?,
botName: string,
title: string?,
message: string,
type: string?,
color: number?,
icon: string?,
author: string?
)Parameters description
webHook- the URL of the discord webhook, used to send the message (nil will be replaced with the default webhook in HRLib's config)botName- the webhook name when sending message (it is different each time)title- the title of the messagemessage- the message contenttype- the message type (usually not used, default: 'rich')color- the message box's coloricon- a direct URL link to an image for logo maybeauthor- text, under the message
Last updated