/set

Modify the current Application/User (Previously /setbot)

This endpoint will require a POST request.

This endpoint supports the Exclude header

Endpoint Headers:

  • apikey - Your Api Auth Key [String] (Required)

  • bot-token - Token of the Bot [String] (Required)

Endpoint Body Parameters

  • obj - Object of modifications (See Discord Docs User | Application) [Object] (Required)

  • type - What to modify [String] (Required) - user - app

Responds with various HTTP status codes to indicate success or failure of the request:

  • 200 OK: The request was successful, and the changes have been applied.

  • 400 Bad Request: The request could not be understood or was missing required parameters.

  • 401 Unauthorized: Authentication failed or user does not have permissions.

  • 404 Not Found: The requested resource could not be found.

  • 500 Internal Server Error: An error occurred on the server.

Ensure to handle these responses appropriately in your application to manage errors and confirmations.

Examples:

Data API version required. Must replace <version> with either release or beta.

Bot Designer for Discord

Example usage of /client/set endpoint using BDFD

Discord.js

Example usage of /client/set endpoint using Discord.js

Possible Responses (Codes)

Code 200

API succeeded and details were fetched.

Code 400

An error occurred that stopped execution.

Code 404

Invalid bot token was provided.{

Last updated