The list item router for the Guilded REST API.

Example

new ListItemRouter(rest);

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

The REST API manager the router belongs to.

Methods

  • Complete a list item on Guilded.

    Example

    listItems.complete('abc', 'abc');
    

    Parameters

    • channelId: string

      The ID of the channel the list item belongs to.

    • listItemId: string

      The ID of the list item to complete.

    Returns Promise<void>

  • Create a list item on Guilded.

    Returns

    The created list item.

    Example

    listItems.create('abc', 'Random item');
    

    Parameters

    • channelId: string

      The ID of the channel the list item belongs to.

    • message: string

      The message of the list item.

    • Optional note: string

      The note of the list item.

    Returns Promise<APIListItem>

  • Delete a list item from Guilded.

    Example

    listItems.delete('abc', 'abc');
    

    Parameters

    • channelId: string

      The ID of the channel the list item belongs to.

    • listItemId: string

      The ID of the list item to delete.

    Returns Promise<void>

  • Edit a list item on Guilded.

    Returns

    The edited list item.

    Example

    listItems.edit('abc', 'abc', 'Random item');
    

    Parameters

    • channelId: string

      The ID of the channel the list item belongs to.

    • listItemId: string

      The ID of the list item to edit.

    • message: string

      The message of theb list item.

    • Optional note: string

      The note of the list item.

    Returns Promise<APIListItem>

  • Fetch a list item from Guilded.

    Returns

    The fetched list item.

    Example

    listItems.fetch('abc', 'abc');
    

    Parameters

    • channelId: string

      The ID of the channel the list item belongs to.

    • listItemId: string

      The ID of the list item to fetch.

    Returns Promise<APIListItem>

  • Fetch list items from Guilded.

    Returns

    The fetched list items.

    Example

    listItems.fetch('abc');
    

    Parameters

    • channelId: string

      The ID of the channel the list items belong to.

    Returns Promise<APIListItem[]>

  • Uncomplete a list item on Guilded.

    Example

    listItems.uncomplete('abc', 'abc');
    

    Parameters

    • channelId: string

      The ID of the channel the list item belongs to.

    • listItemId: string

      The ID of the list item to uncomplete.

    Returns Promise<void>