-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
CalendarEvent.ts
97 lines (95 loc) · 1.94 KB
/
CalendarEvent.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Mentions } from "./Mentions";
export type CalendarEvent = {
/**
* The ID of the calendar event
*/
id: number;
/**
* The ID of the server
*/
serverId: string;
/**
* The ID of the channel
*/
channelId: string;
/**
* The name of the event
*/
name: string;
/**
* The description of the event
*/
description?: string;
/**
* The location of the event
*/
location?: string;
/**
* A URL to associate with the event
*/
url?: string;
/**
* The integer value corresponds to the decimal RGB representation for the color. The color of the event when viewing in the calendar
*/
color?: number;
/**
* Is this event a repeating event
*/
repeats?: boolean;
/**
* The ID of the calendar event series. Only shows if the event is repeating
*/
seriesId?: string;
/**
* The role IDs to restrict the event to
*/
roleIds?: Array<number>;
/**
* When disabled, users will not be able to RSVP to the event
*/
rsvpDisabled?: boolean;
/**
* Does the event last all day
*/
isAllDay?: boolean;
/**
* The number of RSVPs to allow before waitlisting RSVPs
*/
rsvpLimit?: number;
/**
* When `rsvpLimit` is set, users from the waitlist will be added as space becomes available in the event
*/
autofillWaitlist?: boolean;
/**
* The ISO 8601 timestamp that the event starts at
*/
startsAt: string;
/**
* The duration of the event _**in minutes**_
*/
duration?: number;
isPrivate?: boolean;
mentions?: Mentions;
/**
* The ISO 8601 timestamp that the event was created at
*/
createdAt: string;
/**
* The ID of the user who created this event
*/
createdBy: string;
cancellation?: {
/**
* The description of event cancellation
*/
description?: string;
/**
* The ID of the user who created this event cancellation
*/
createdBy: string;
};
};