$messageUnpin
Unpins a message and optionally returns data about the message being unpinned.

FUNCTION USAGE

  • $messageUnpin[channelID;messageID]
  • $messageUnpin[channelID;messageID;option]

Properties:

channelID - The ID of the channel where the message is located. messageID - The ID of the message being unpinned. option - Optional data for the bot to return upon unpinning a message.
  1. 1.
    id - Returns the ID of the message being unpinned.
  2. 2.
    url - Returns the URL link of the message being unpinned.
  3. 3.
    content - Returns the content of the message being unpinned.
  4. 4.
    author - Returns the author ID of the message being unpinned.
  5. 5.
    channel - Returns the ID of the channel where the message is being unpinned.
  6. 6.
    You can omit the 3rd field or leave it blank to return nothing and just simply unpin the message.

Example 1: Unpinning a message in the current channel with no optional feedback.

1
bot.Command({
2
name: "pin",
3
code: `
4
$messageUnpin[$channelID[];$message[1];]
5
`
6
})
Copied!

Example 2: Unpinning a message in another channel with some optional feedback of your choice.

1
bot.Command({
2
name: "pin",
3
code: `
4
$messageUnpin[$findchannel[$message[1]];$message[2];$message[3]]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: