Class GlobalForumTopicManager

Manager for interacting with forum topics at a global level.

Hierarchy

Constructors

Properties

cache: Collection<number, ForumTopic> = ...
client: Client

Accessors

Methods

  • Create a topic in a forum.

    Parameters

    • channelId: string

      The ID of the channel containing the forum.

    • options: {}

      The options for creating the forum topic.

      Returns Promise<ForumTopic>

      A Promise that resolves with the payload of the created forum topic.

    • Delete a topic in a forum.

      Parameters

      • channelId: string

        The ID of the channel containing the forum.

      • forumTopicId: number

        The ID of the forum topic.

      Returns Promise<void>

      A Promise that resolves to nothing.

    • Get all topics in a forum.

      Parameters

      • channelId: string

        The ID of the channel containing the forum.

      • options: Omit<{}, "channelId">

        The options for filtering the forum topics.

      Returns Promise<Collection<number, PartialForumTopic>>

      A Promise that resolves to a Collection of ForumTopics.

    • Lock a topic in a forum.

      Parameters

      • channelId: string

        The ID of the channel containing the forum.

      • forumTopicId: number

        The ID of the forum topic.

      Returns Promise<void>

      A Promise that resolves to nothing.

    • Pin a topic in a forum.

      Parameters

      • channelId: string

        The ID of the channel containing the forum.

      • forumTopicId: number

        The ID of the forum topic.

      Returns Promise<void>

      A Promise that resolves to nothing.

    • Unlock a topic in a forum.

      Parameters

      • channelId: string

        The ID of the channel containing the forum.

      • forumTopicId: number

        The ID

      Returns Promise<void>

      A Promise that resolves to nothing.

    • Unpin a topic in a forum.

      Parameters

      • channelId: string

        The ID of the channel containing the forum.

      • forumTopicId: number

        The ID of the forum topic.

      Returns Promise<void>

      A Promise that resolves to nothing.

    • Update a topic in a forum.

      Parameters

      • channelId: string

        The ID of the channel containing the forum.

      • forumTopicId: number

        The ID of the forum topic.

      • options: {}

        The options for updating the forum topic.

        Returns Promise<ForumTopic>

        A Promise that resolves to the updated ForumTopic. If cached locally, it will modify that object.

      Generated using TypeDoc