Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/discal.dev. your Discord events, everywhere. subscribe once, sync to any calendar app – o discal.dev
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980export interface DiscordRecurrenceRule { start: string end: string | null frequency: 0 | 1 | 2 | 3 // 0=YEARLY, 1=MONTHLY, 2=WEEKLY, 3=DAILY interval: number by_weekday: number[] | null // 0=Mon...6=Sun by_n_weekday: { n: number, day: number }[] | null by_month: number[] | null // 1=Jan...12=Dec by_month_day: number[] | null by_year_day: number[] | null count: number | null}
export interface DiscordScheduledEventException { event_id: string event_exception_id: string scheduled_start_time: string scheduled_end_time: string | null is_canceled: boolean}
export interface DiscordScheduledEvent { id: string guild_id: string channel_id: string | null creator_id: string | null name: string description: string | null scheduled_start_time: string scheduled_end_time: string | null privacy_level: number status: 1 | 2 | 3 | 4 // 1=SCHEDULED, 2=ACTIVE, 3=COMPLETED, 4=CANCELED entity_type: 1 | 2 | 3 // 1=STAGE, 2=VOICE, 3=EXTERNAL entity_id: string | null entity_metadata: { location?: string } | null user_count?: number image: string | null recurrence_rule: DiscordRecurrenceRule | null guild_scheduled_event_exceptions?: DiscordScheduledEventException[]}
export interface StoredGuild { id: string name: string icon: string | null addedBy: string atprotoDid: string | null timezone: string calendarSlug: string createdAt: string}
export interface StoredEventException { originalStartTime: string startTime: string endTime: string | null isCanceled: boolean}
export interface StoredEvent { id: string guildId: string name: string description: string | null location: string | null channelId: string | null startTime: string endTime: string | null entityType: 1 | 2 | 3 status: 1 | 2 | 3 | 4 recurrenceRule: DiscordRecurrenceRule | null exceptions?: StoredEventException[] imageHash: string | null userCount: number atprotoUri: string | null atprotoCid: string | null atprotoRecordVersion: number | null lastSyncedAt: string}