Class ThreadAbstract

Hierarchy (view full)

Constructors

  • Parameters

    • json: INewsThread | IPrivateThread | IPublicThread

    Returns Thread

Properties

defaultAutoArchiveDurationMinutes: null | AutoArchiveMinutes

Channel flags, e.g whether this channel is a spoiler channel, a pinned forum post, or if its metadata was obfuscated because the bot can't view it.

id: string
kind: "NewsThread" | "PublicThread" | "PrivateThread"
kindId: number

The raw discord channel type id, compare against ChannelTypes.

Unlike kind this is also meaningful for channel types botloader doesn't have a name for yet.

Example

if (channel.kindId === ChannelTypes.Forum) {
// ...
}
member: null | SelfThreadMember
memberCount: number
messageCount: number
name: string
ownerId: null | string
parentId: null | string
permissionOverwrites: IPermissionOverwrite[]
rateLimitPerUser: null | number
threadMetadata: ThreadMetadata

Methods

  • Parameters

    • userId: string

    Returns Promise<void>

  • Returns Promise<Thread>

  • Parameters

    Returns Promise<Thread>

  • Returns Promise<Thread>

  • Parameters

    • userId: string

    Returns Promise<void>

  • Returns Promise<Thread>

  • Returns Promise<Thread>

Generated using TypeDoc