The channel router for the Guilded REST API.

Example

new ChannelRouter(rest);

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Create a channel on Guilded.

    Returns

    The created channel.

    Example

    channels.create({ name: 'Chat', type: 'chat' });
    

    Parameters

    Returns Promise<APIChannel>

  • Delete a channel from Guilded.

    Example

    channels.delete('abc');
    

    Parameters

    • channelId: string

      The ID of the channel to delete.

    Returns Promise<void>

  • Edit a channel on Guilded.

    Returns

    The edited channel.

    Example

    channels.edit('abc', { name: 'Chat' });
    

    Parameters

    • channelId: string

      The ID of the channel to edit.

    • payload: APIChannelEditPayload

      The payload of the channel.

    Returns Promise<APIChannel>

  • Fetch a channel from Guilded.

    Returns

    The fetched channel.

    Example

    channels.fetch('abc');
    

    Parameters

    • channelId: string

      The ID of the channel to fetch.

    Returns Promise<APIChannel>