Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NewsThreadChannel

Hierarchy

Index

Constructors

constructor

Properties

client

client: Client

createdAt

createdAt: number

guild

guild: Guild

id

id: string

lastMessageID

lastMessageID: string

Optional lastPinTimestamp

lastPinTimestamp: number

Optional member

member: ThreadMember

memberCount

memberCount: number

members

mention

mention: string

messageCount

messageCount: number

messages

name

name: string

nsfw

nsfw: boolean

ownerID

ownerID: string

parentID

parentID: null | string

permissionOverwrites

permissionOverwrites: Collection<PermissionOverwrite>

position

position: number

rateLimitPerUser

rateLimitPerUser: number

threadMetadata

threadMetadata: ThreadMetadata

type

type: 10

Methods

addMessageReaction

  • addMessageReaction(messageID: string, reaction: string): Promise<void>
  • Parameters

    • messageID: string
    • reaction: string

    Returns Promise<void>

createMessage

delete

  • delete(reason?: string): Promise<void>
  • Parameters

    • Optional reason: string

    Returns Promise<void>

deleteMessage

  • deleteMessage(messageID: string, reason?: string): Promise<void>
  • Parameters

    • messageID: string
    • Optional reason: string

    Returns Promise<void>

deleteMessages

  • deleteMessages(messageIDs: string[], reason?: string): Promise<void>
  • Parameters

    • messageIDs: string[]
    • Optional reason: string

    Returns Promise<void>

deletePermission

  • deletePermission(overwriteID: string, reason?: string): Promise<void>
  • Parameters

    • overwriteID: string
    • Optional reason: string

    Returns Promise<void>

edit

  • edit(options: Pick<EditChannelOptions, "name" | "rateLimitPerUser" | "archived" | "autoArchiveDuration" | "invitable" | "locked">, reason?: string): Promise<NewsThreadChannel>
  • Parameters

    • options: Pick<EditChannelOptions, "name" | "rateLimitPerUser" | "archived" | "autoArchiveDuration" | "invitable" | "locked">
    • Optional reason: string

    Returns Promise<NewsThreadChannel>

editMessage

editPermission

editPosition

getInvites

getMembers

getMessage

getMessageReaction

  • getMessageReaction(messageID: string, reaction: string, options?: GetMessageReactionOptions): Promise<User[]>
  • getMessageReaction(messageID: string, reaction: string, limit?: number, before?: string, after?: string): Promise<User[]>

getMessages

getPins

inspect

join

  • join(userID?: string): Promise<void>
  • Parameters

    • Optional userID: string

    Returns Promise<void>

leave

  • leave(userID?: string): Promise<void>
  • Parameters

    • Optional userID: string

    Returns Promise<void>

permissionsOf

pinMessage

  • pinMessage(messageID: string): Promise<void>
  • Parameters

    • messageID: string

    Returns Promise<void>

purge

removeMessageReaction

  • removeMessageReaction(messageID: string, reaction: string, userID?: string): Promise<void>
  • Parameters

    • messageID: string
    • reaction: string
    • Optional userID: string

    Returns Promise<void>

removeMessageReactionEmoji

  • removeMessageReactionEmoji(messageID: string, reaction: string): Promise<void>

removeMessageReactions

  • removeMessageReactions(messageID: string): Promise<void>

sendTyping

  • sendTyping(): Promise<void>

toJSON

toString

  • toString(): string

unpinMessage

  • unpinMessage(messageID: string): Promise<void>
  • Parameters

    • messageID: string

    Returns Promise<void>

unsendMessage

  • unsendMessage(messageID: string): Promise<void>
  • Parameters

    • messageID: string

    Returns Promise<void>

Static from

Static getCreatedAt

  • getCreatedAt(id: string): number
  • Parameters

    • id: string

    Returns number

Static getDiscordEpoch

  • getDiscordEpoch(id: string): number

Generated using TypeDoc