Modify a specific event from the guild

This endpoint requires a POST request!

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

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

  • 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] (Optional)

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

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

  • 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] (Optional)

  • status - the status of the scheduled event [Integer] (Optional)

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

* Optional for events with 'entity_type': EXTERNAL

** Required for events with'entity_type': EXTERNAL We suggest you read Discord's Documentation on Event Modify


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

Bot Designer for Discord

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

      "name": "Tainted Love - 2",
      "description": "Star Wars Is REALLY Cool"

$httpResult OR $httpResult[details]

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

const axios = require('axios');
(async () => {
return await axios.post('https://bdfddata.rickyjs.xyz/<version>/guild/event/modify', {
      "name": "Tainted Love 2",
      "description": "Star Wars Is REALLY Cool"
}, {
headers: {
'apikey': <YOUR-API-KEY>,
'bot-token': <YOUR-BOT-TOKEN>,
'guild-id: '1064098700307218463',

Possible Responses (Codes)

Code 200

API succeeded and details were fetched.

 status: 200
  status: 200,
      id: '1093716999017865326',
      guild_id: '1064098700307218463',
      channel_id: null,
      creator_id: '672215920558604332',
      name: 'Test Event - Ignore This!!!!!',
      description: 'We love you, this is a secret!',
      "pending": false,
      "premium_since": null,

   >  'Read on `Event Objects`: https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object' 
Code 400

An error occurred that stopped execution.

    status: 400
    error: 'Cannot read ...  (This can vary)'
Code 401

Invalid bot token was provided.

  status: 401,
  details: { message: '401: Unauthorized', code: 0 }
Code 404

Guild was not found via DAPI

  status: 404,
  details: { message: 'Unknown Guild', code: 10004 } (this can vary)

Last updated