/create

Create an event for a guild

This endpoint requires a POST request!

This endpoint supports the Exclude header

Endpoint Headers:

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

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

  • guild-id - ID of the guild to be fetched [Snowflake] (Required)

Endpoint Body Parameters

  • channel_id - the channel id of the scheduled event. [Snowflake] (*)

  • entity_metadata - the entity metadata of the scheduled event [Object] (**)

  • name - the name of the scheduled event [String] (Required)

  • privacy_level - the privacy level of the scheduled event [Integer] (Required)

  • scheduled_start_time - the time to schedule the event [ISO8601 timestamp] (Required)

  • scheduled_end_time - the time when the event is scheduled to end [ISO8601 timestamp] (**)

  • description - the description of the scheduled event [String] (Optional)

  • entity_type - the entity type of the scheduled event [Integer] (Required)

  • image - the cover image of the scheduled event [Image Data] (Optional)

Examples:

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

Bot Designer for Discord

Example usage of /guild/event/create endpoint using BDFD

Discord.js

Example usage of /guild/event/create endpoint using Discord.js

Possible Responses (Codes)

Code 200

API succeeded and details were fetched.

Code 400

An error occurred that stopped execution.

Code 401

Invalid bot token was provided.

Code 404

Guild was not found via DAPI

Last updated