The REST API endpoints for Guilded.

Hierarchy

  • Routes

Constructors

Properties

channels: "/channels" = ...

The enpoint for channels on Guilded.

See

https://www.guilded.gg/docs/api/channels/ChannelCreate

Methods

  • The endpoint for a content reaction on Guilded.

    See

    https://www.guilded.gg/docs/api/reactions/ContentReactionCreate

    Example

    Routes.reaction('abc', 'abc', 123); // '/channels/abc/content/abc/emotes/123'
    

    Type Parameters

    • C extends string

    • Co extends string

    • E extends number

    Parameters

    • channelId: C

      The ID of the channel the content belongs to.

    • contentId: Co

      The ID of the content.

    • emoteId: E

      The ID of the emote.

    Returns `/channels/${C}/content/${Co}/emotes/${E}`

  • The endpoint for server member roles on Guilded.

    See

    https://www.guilded.gg/docs/api/roleMembership/RoleMembershipReadMany

    Example

    Routes.serverMemberRoles('abc', 'abc'); // '/servers/abc/members/abc/roles'
    

    Type Parameters

    • S extends string

    • M extends string

    Parameters

    • serverId: S

      The ID of the server the member belongs to.

    • memberId: M

      The ID of the member.

    Returns `/servers/${S}/members/${M}/roles`

  • The endpoint for server member XP on Guilded.

    See

    https://www.guilded.gg/docs/api/server-xp/ServerXpForUserCreate

    Example

    Routes.serverMemberXp('abc', 'abc'); // '/servers/abc/members/abc/xp'
    

    Type Parameters

    • S extends string

    • M extends string

    Parameters

    • serverId: S

      The ID of the server the member belongs to.

    • memberId: M

      The ID of the member.

    Returns `/servers/${S}/members/${M}/xp`

  • The endpoint for a server member social link on Guilded.

    See

    https://www.guilded.gg/docs/api/socialLinks/MemberSocialLinkRead

    Example

    Routes.socialLink('abc', 'abc', 'youtube'); // '/servers/abc/members/abc/social-links/youtube'
    

    Type Parameters

    • S extends string

    • M extends string

    • T extends string

    Parameters

    • serverId: S

      The ID of the server the member belongs to.

    • memberId: M

      The ID of the member.

    • type: T

      The type of social link.

    Returns `/servers/${S}/members/${M}/social-links/${T}`

  • The endpoint for a webhook execution on Guilded.

    Example

    Routes.webhookExecute('abc', 'abc'); // '/webhooks/abc/abc'
    

    Type Parameters

    • W extends string

    • WT extends string

    Parameters

    • webhookId: W

      The ID of the webhook.

    • webhookToken: WT

      The ID of the webhook.

    Returns `/webhooks/${W}/${WT}`