$archiveThread

Archives a thread.

Usage

$archiveThread[threadID]

This function has one param.

ParmasDescriptionTypeRequired

threadID

The ID of the thread channel to delete.

Snowflake

Yes

Example

bot.commands.add({
  type: "basicCommand",
  name: "example",
  code: `
    $onlyIf[$channelType[$noMentionMessage]==thread;:x: That's a not a thread channel!]
    $archiveThread[$noMentionMessage]
    Archived thread!
  `
})

Last updated