DISCAL

About Commands Setup Lazy DisCal Dashboard Support Patreon Status Log In

API



v1 Endpoints






Jump


API v1 Docs - Calendar Endpoint

The calendar endpoints allows you to get, edit, and list calendars for a specific guild.



/get

Returns the specified calendar's data.


Example Request Body

				{
				"guild_id": 375357265198317579,
				"number": 1
				}
			

Example Response


				{
				"external": false,
				"id": "[email protected]"
				"address": "[email protected]"
				}
			

Supported Values in Request
Key Value Type Info Required
guild_id long The Guild ID True
number int The calendar's number (1 for the main calendar) True

Returned Values
Key Value Type Info
external Boolean Whether or not the calendar is an external calendar
id String The calendar's google ID
address String The calendar's google Address


/list

Returns a list of all the guild's calendars.


Example Request Body

				{
				"guild_id": 375357265198317579
				}
			

Example Response


				{
				"count": 1,
				"calendars": [{
					"number": 1,
					"external": false,
					"id": "[email protected]",
					"address": "[email protected]"
				}]
				}
			

Supported Values in Request
Key Value Type Info Required
guild_id long The Guild ID True

Returned Values
Key Value Type Info
count int Amount of calendars the guild has
calendars.number int Calendar index. (1 for main calendar)
calendars.external Boolean Whether or not the calendar is an external calendar
calendars.id String The calendar's google ID
calendars.address String The calendar's google Address