SendDiscordMessage()

Description

This function sends a message in your discord server. Make sure that global.discordServerId is set up in Options.gml first.

Syntax

SendDiscordMessage(channelIdString, messageBody)
Argument
Description

channelIdString

The stringified numerical ID of the channel. Note that this is not the channel name! Right click on a channel and copy its ID. This must be a String.

messageBody

The body of the message you are sendind This must be a String.

Returns

N/A

Example Implementation

var messageBody = get_string("Message body","Hello from Gamemaker")
SendDiscordMessage("1213209657838014500",messageBody)

Last updated