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 message

  • message - the message content

  • type - the message type (usually not used, default: 'rich')

  • color - the message box's color

  • icon - a direct URL link to an image for logo maybe

  • author - text, under the message

Last updated