The server ban router for the Guilded REST API.

Example

new ServerBanRouter(rest);

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Create a server ban on Guilded.

    Returns

    The created server ban.

    Example

    serverBans.create('abc', 'abc', 'Spamming');
    

    Parameters

    • serverId: string

      The ID of the server the member belongs to.

    • memberId: string

      The ID of the server member to ban.

    • Optional reason: string

      The reason of the server ban.

    Returns Promise<APIServerBan>

  • Delete a server ban from Guilded.

    Example

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

    Parameters

    • serverId: string

      The ID of the server the member belongs to.

    • memberId: string

      The ID of the server member to unban.

    Returns Promise<void>

  • Fetch a server ban from Guilded.

    Returns

    The fetched server ban.

    Example

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

    Parameters

    • serverId: string

      The ID of the server the ban belong to.

    • banId: string

      The ID of the server ban to fetch.

    Returns Promise<APIServerBan>

  • Fetch server bans from Guilded.

    Returns

    The fetched server bans.

    Example

    serverBans.fetch('abc');
    

    Parameters

    • serverId: string

      The ID of the server the bans belong to.

    Returns Promise<APIServerBan[]>