The ThreadChannel payload
The Client
Private #clientThe available tags of the channel.
The bitrate of the channel.
Optional channelReadonly clientReadonly cooldownReadonly dataThe channel payload.
The default auto archive duration of the channel.
The default forum layout of the channel.
The default reaction emoji of the channel.
The default sort order of the channel.
The default thread rate limit per user of the channel.
Optional flagsThe flags of the channel.
Optional guildThe ID of the guild where the channel is located.
The ID of the channel.
Readonly last_The name of the channel.
Optional nsfwIndicates whether the channel is NSFW.
Optional ownerThe parent ID of the channel.
Optional permission_The permission overwrites of the channel.
Optional permissionsThe permissions manager of the channel.
The position of the channel.
The RTC region of the channel.
Readonly sendReadonly sendThe topic of the channel.
The type of the channel.
The user limit of the channel.
The video quality mode of the channel.
Clones the channel
const channel = client.channels.cache.get("766497696604487691")
channel.clone().then((result) => {
if(result?.error){
console.log(`Error :()`)
} else {
console.log(`Channel cloned successfully`)
}
})
Creates a message in the Text Channel
The message send payload
const channel = client.channels.cache.get("766497696604487691")
channel.createMessage(`Hello world!`).then((response) => {
if(response.error){
return console.log(response)
} else {
console.log(`Message sended successfully!`)
}
})
The Channel Edit payload
Optional reason: stringconst channel = client.channels.cache.get("766497696604487691")
channel.edit({ name: "hello" }).then((result) => {
if(result?.error){
console.log(`Error :()`)
} else {
console.log(`Channel edited successfully`)
}
})
Optional reason: stringGenerated using TypeDoc
Represents a ThreadChannel