The forum topic router for the Guilded REST API.

Example

new ForumTopicRouter(rest);

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

The REST API manager the router belongs to.

Methods

  • Delete a forum topic from Guilded.

    Example

    topics.delete('abc', 123);
    

    Parameters

    • channelId: string

      The ID of the channel the forum topic belongs to.

    • forumTopicId: number

      The ID of the forum topic to delete.

    Returns Promise<void>

  • Edit a forum topic on Guilded.

    Returns

    The edited forum topic.

    Example

    topics.edit('abc', 123, { title: 'New Title', content: 'New Content' });
    

    Parameters

    • channelId: string

      The ID of the channel the forum topic belongs to.

    • forumTopicId: number

      The ID of the forum topic to edit.

    • payload: Partial<APIForumTopicPayload>

      The payload of the forum topic.

    Returns Promise<APIForumTopic>

  • Lock a forum topic on Guilded.

    Example

    topics.lock('abc', 123);
    

    Parameters

    • channelId: string

      The ID of the channel the forum topic belongs to.

    • forumTopicId: number

      The ID of the forum topic to lock.

    Returns Promise<void>

  • Pin a forum topic on Guilded.

    Example

    topics.pin('abc', 123);
    

    Parameters

    • channelId: string

      The ID of the channel the forum topic belongs to.

    • forumTopicId: number

      The ID of the forum topic to pin.

    Returns Promise<void>

  • Unlock a forum topic on Guilded.

    Example

    topics.unlock('abc', 123);
    

    Parameters

    • channelId: string

      The ID of the channel the forum topic belongs to.

    • forumTopicId: number

      The ID of the forum topic to unlock.

    Returns Promise<void>

  • Unpin a forum topic on Guilded.

    Example

    topics.unpin('abc', 123);
    

    Parameters

    • channelId: string

      The ID of the channel the forum topic belongs to.

    • forumTopicId: number

      The ID of the forum topic to unpin.

    Returns Promise<void>