Skip to content

$unPinMessage

$unPinMessage will unpin a given message.

Usage

$unPinMessage[messageID?;channelID?]

Parameters

FieldTypeDescriptionRequired
messageIDnumberThe ID of the message to unpin.false
channelIDnumberThe ID of the channel of where the message is located in.false

Example(s)

This will pin the bot’s message and unpin it after two seconds:

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