Hierarchy

  • MembersService

Constructors

Properties

httpRequest: BaseHttpRequest

Methods

  • Update a member's nickname

    Throws

    ApiError

    Parameters

    • options: {
          requestBody: {
              nickname: string;
          };
          serverId: string;
          userId: string;
      }
      • requestBody: {
            nickname: string;
        }
        • nickname: string

          The nickname to assign to the member

      • serverId: string
      • userId: string

        The ID of the user to update nickname for

    Returns CancelablePromise<{
        nickname: string;
    }>

    any Success

  • Kick a server member This route can be used to leave servers by passing in your own user ID or @me for userId

    Throws

    ApiError

    Parameters

    • options: {
          serverId: string;
          userId: string;
      }
      • serverId: string

        The ID of the server to kick the user from

      • userId: string

        The ID of the user to kick. If the value provided here is your own user's ID, the request will attempt to make you leave the server

    Returns CancelablePromise<void>

    void

Generated using TypeDoc