Class ThreadChannel<ThreadOnly>

Type Parameters

  • ThreadOnly extends boolean = boolean

Hierarchy

Constructors

  • Type Parameters

    • ThreadOnly extends boolean = boolean

    Parameters

    • guild: Guild
    • Optional data: RawThreadChannelData
    • Optional client: Client<true>

    Returns ThreadChannel<ThreadOnly>

Properties

_createdTimestamp: null | number
appliedTags: string[]
archiveTimestamp: null | number
archived: null | boolean
autoArchiveDuration: null | ThreadAutoArchiveDuration
client: Client<true>
flags: Readonly<ChannelFlagsBitField>
guild: Guild
guildId: string
id: string
invitable: null | boolean
lastMessage: null | Message<boolean>
lastMessageId: null | string
lastPinAt: null | Date
lastPinTimestamp: null | number
locked: null | boolean
memberCount: null | number
messageCount: null | number
name: string
ownerId: null | string
parentId: null | string
rateLimitPerUser: null | number
totalMessageSent: null | number

Accessors

  • get archivedAt(): null | Date
  • Returns null | Date

  • get createdAt(): null | Date
  • Returns null | Date

  • get createdTimestamp(): null | number
  • Returns null | number

  • get editable(): boolean
  • Returns boolean

  • get joinable(): boolean
  • Returns boolean

  • get joined(): boolean
  • Returns boolean

  • get manageable(): boolean
  • Returns boolean

  • get partial(): false
  • Returns false

  • get sendable(): boolean
  • Returns boolean

  • get unarchivable(): boolean
  • Returns boolean

  • get url(): string
  • Returns string

  • get viewable(): boolean
  • Returns boolean

Methods

  • Parameters

    • Optional reason: string

    Returns Promise<ThreadChannel<ThreadOnly>>

  • Parameters

    • Optional force: boolean

    Returns Promise<ThreadChannel<ThreadOnly>>

  • Parameters

    Returns Promise<null | ThreadMember<boolean>>

  • Parameters

    Returns Promise<null | Message<true>>

  • Returns Promise<ThreadChannel<ThreadOnly>>

  • Returns Promise<ThreadChannel<ThreadOnly>>

  • Parameters

    • Optional reason: string

    Returns Promise<If<ThreadOnly, ThreadChannel<ThreadOnly>, never>>

  • Returns Promise<void>

  • Parameters

    • appliedTags: readonly string[]
    • Optional reason: string

    Returns Promise<If<ThreadOnly, ThreadChannel<ThreadOnly>, never>>

  • Parameters

    • Optional archived: boolean
    • Optional reason: string

    Returns Promise<ThreadChannel<ThreadOnly>>

  • Parameters

    Returns Promise<ThreadChannel<ThreadOnly>>

  • Parameters

    • Optional invitable: boolean
    • Optional reason: string

    Returns Promise<ThreadChannel<ThreadOnly>>

  • Parameters

    • Optional locked: boolean
    • Optional reason: string

    Returns Promise<ThreadChannel<ThreadOnly>>

  • Parameters

    • name: string
    • Optional reason: string

    Returns Promise<ThreadChannel<ThreadOnly>>

  • Parameters

    • rateLimitPerUser: number
    • Optional reason: string

    Returns Promise<TextBasedChannelFields<true>>

  • Parameters

    • Rest ...props: Record<string, string | boolean>[]

    Returns unknown

  • Returns `<#${string}>`

  • Parameters

    • Optional reason: string

    Returns Promise<If<ThreadOnly, ThreadChannel<ThreadOnly>, never>>

  • Returns string

Generated using TypeDoc