Interface JSONForumThread<T>

interface JSONForumThread<T> {
    bumpedAt: null | Date;
    channelID: string;
    comments: JSONForumThreadComment[];
    content: string;
    createdAt: Date;
    editedTimestamp: null | Date;
    guildID: string;
    id: number;
    isLocked: boolean;
    isPinned: boolean;
    mentions: null | {
        channels?: {
            id: string;
        }[];
        everyone?: boolean;
        here?: boolean;
        roles?: {
            id: number;
        }[];
        users?: {
            id: string;
        }[];
    };
    name: string;
    owner: T extends Guild
        ? Member
        :
            | undefined
            | User
            | Member
            | Promise<Member>;
    ownerID: string;
}

Type Parameters

  • T

Hierarchy (view full)

Properties

bumpedAt: null | Date

Timestamp (unix epoch time) that the forum thread was bumped at.

channelID: string

Forum channel id

Cached comments.

content: string

Content of the thread

createdAt: Date

When this forum thread was created.

editedTimestamp: null | Date

Timestamp at which this channel was last edited.

guildID: string

Guild/server id

id: number
isLocked: boolean

If true, the thread is locked.

isPinned: boolean

If true, the thread is pinned.

mentions: null | {
    channels?: {
        id: string;
    }[];
    everyone?: boolean;
    here?: boolean;
    roles?: {
        id: number;
    }[];
    users?: {
        id: string;
    }[];
}

Thread mentions

Type declaration

  • Optionalchannels?: {
        id: string;
    }[]

    Channels

    Info on mentioned channels

  • Optionaleveryone?: boolean

    Everyone

    If

    was mentioned

  • Optionalhere?: boolean

    Here

    If

    was mentioned

  • Optionalroles?: {
        id: number;
    }[]

    Roles

    Info on mentioned roles

  • Optionalusers?: {
        id: string;
    }[]

    Users

    Info on mentioned users

name: string

Name of the thread

owner: T extends Guild
    ? Member
    :
        | undefined
        | User
        | Member
        | Promise<Member>

Owner of this thread, if cached.

ownerID: string

The ID of the owner of this thread.