Skip to content

$pinMessage

$pinMessage will pin a given message.

Usage

$pinMessage[messageID?;channelID?]

Parameters

FieldTypeDescriptionRequired
messageIDnumberThe ID of the message that will be pinned.false
channelIDnumberThe channel ID of where the message is located in.false

Example(s)

This will pin the bot’s message:

1
client.command({
2
name: "pinMessage",
3
code: `
4
$pinMessage[$get[id]]
5
$let[id;$sendMessage[Hello!;true]
6
` // using $let & $get to save the message ID
7
});