Represents a topic on Guilded.

Example

new ForumTopic(channel, rawForumTopic);

Hierarchy

  • Base<number>
    • ForumTopic

Constructors

Properties

bumpedAt?: Date

The date the forum topic was bumped.

channel: ForumChannel
channelId: string

The ID of the channel the forum topic belongs to.

client: Client
content?: string

The content of the forum topic.

createdAt: Date

The date the forum topic was created.

createdBy: string

The ID of the user that created the forum topic.

createdByWebhookId?: string

The ID of the webhook that created the forum topic.

editedAt?: Date

The date the forum topic was edited.

id: number
mentions?: APIMentions

The mentions of the forum topic.

serverId: string

The ID of the server the forum topic belongs to.

title: string

The title of the forum topic.

Accessors

  • get author(): undefined | ServerMember
  • The server member that created the forum topic.

    Returns undefined | ServerMember

  • get authorId(): string
  • The ID of the user that created the forum topic.

    Returns string

  • get bumpedTimestamp(): undefined | number
  • The timestamp the forum topic was bumped.

    Returns undefined | number

  • get createdTimestamp(): number
  • The timestamp the forum topic was created.

    Returns number

  • get editedTimestamp(): undefined | number
  • The timestamp the forum topic was edited.

    Returns undefined | number

  • get isCached(): boolean
  • Whether the forum topic is cached.

    Returns boolean

  • get server(): undefined | Server
  • The server the forum topic belongs to.

    Returns undefined | Server

  • get webhook(): undefined | Webhook
  • The webhook that created the forun topic.

    Returns undefined | Webhook

Methods

  • Delete the forum topic.

    Returns

    The deleted forum topic.

    Example

    forumTopic.delete();
    

    Returns Promise<ForumTopic>

  • Edit the forum topic.

    Returns

    The edited forum topic.

    Example

    forumTopic.edit({ title: 'New title' });
    

    Parameters

    Returns Promise<ForumTopic>

  • Fetch the forum topic.

    Returns

    The fetched forum topic.

    Example

    forumTopic.fetch();
    

    Parameters

    • Optional options: FetchOptions

      The options to fetch the forum topic with.

    Returns Promise<ForumTopic>

  • Fetch the server member that created the forum topic.

    Returns

    The fetched server member.

    Example

    forumTopic.fetchAuthor();
    

    Parameters

    • Optional options: FetchOptions

      The options to fetch the server member with.

    Returns Promise<ServerMember>

  • Fetch the server the forum topic belongs to.

    Returns

    The fetched server.

    Example

    forumTopic.fetchServer();
    

    Parameters

    • Optional options: FetchOptions

      The options to fetch the server with.

    Returns Promise<Server>

  • Fetch the webhook that created the forum topic.

    Returns

    The fetched webhook.

    Example

    forumTopic.fetchWebhook();
    

    Parameters

    • Optional options: FetchOptions

      The options to fetch the webhook with.

    Returns undefined | Promise<Webhook>

  • Lock the forum topic.

    Returns

    The locked forum topic.

    Example

    forumTopic.lock();
    

    Returns Promise<ForumTopic>

  • Pin the forum topic.

    Returns

    The pinned forum topic.

    Example

    forumTopic.pin();
    

    Returns Promise<ForumTopic>

  • Unlock the forum topic.

    Returns

    The unlocked forum topic.

    Example

    forumTopic.unlock();
    

    Returns Promise<ForumTopic>

  • Unpin the forum topic.

    Returns

    The unpinned forum topic.

    Example

    forumTopic.unpin();
    

    Returns Promise<ForumTopic>