v0.13.8

C_Calendar

namespaceavailable in: camelot

Status in wowlua

90 functions: 6 implemented, 1 recorded, 83 guessed. 13 events, 1 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
AddEventSaves the new event currently being created to the server.
()
guessed
AreNamesReadyWhether the calendar's player names have been loaded. · by wowlua
(): boolean
guessed
CanAddEventReturns whether the player can add an event.
(): boolean
guessed
CanSendInviteReturns whether the player can send invites.
(): boolean
guessed
CloseEventCloses the selected event without saving it.
()
guessed
ContextMenuEventCanComplainReturns whether the player can report the event as spam.
(offsetMonths: number, monthDay: number, eventIndex: number): boolean
guessed
ContextMenuEventCanEditReturns whether the player can edit the event.
(offsetMonths: number, monthDay: number, eventIndex: number): boolean
guessed
ContextMenuEventCanRemoveReturns whether the player can remove the event.
(offsetMonths: number, monthDay: number, eventIndex: number): boolean
guessed
ContextMenuEventClipboardWhether the calendar has a copied event to paste. · by wowlua
(): boolean
guessed
ContextMenuEventCopyCopies the event to the clipboard.
()
guessed
ContextMenuEventGetCalendarTypeReturns the calendar type of the event selected in the calendar's context menu, such as "PLAYER" or "GUILD_EVENT". · by wowlua
(): string?
guessed
ContextMenuEventPastePastes the clipboard event to the date.
(offsetMonths: number, monthDay: number)
guessed
ContextMenuEventRemoveDeletes the event.
()
guessed
ContextMenuEventSignUpSigns up for the event selected in the calendar's context menu. · by wowlua
()
guessed
ContextMenuGetEventIndexReturns the month offset, day and index of the event selected in the calendar's context menu. · by wowlua
(): CalendarEventIndexInfo?
guessed
ContextMenuInviteAvailableAccepts the invitation to the event.
()
guessed
ContextMenuInviteDeclineDeclines the invitation to the event.
()
guessed
ContextMenuInviteRemoveRemoves the event from the calendar.
()
guessed
ContextMenuInviteTentativeAnswers the invite to the event selected in the calendar's context menu as tentative. · by wowlua
()
guessed
ContextMenuSelectEventSelects an event for the calendar's context menu. · by wowlua
(offsetMonths: number, monthDay: number, eventIndex: number)
guessed
CreateCommunitySignUpEventStarts creating a new community event that members can sign up for. · by wowlua
()
guessed
CreateGuildAnnouncementEventStarts creating a new guild announcement event. · by wowlua
()
guessed
CreateGuildSignUpEventStarts creating a new guild event that members can sign up for. · by wowlua
()
guessed
CreatePlayerEventCreates a new calendar event candidate for the player.
()
guessed
EventAvailableAccepts the invitation to the currently open event.
()
guessed
EventCanEditReturns whether the event can be edited.
(): boolean
guessed
EventClearAutoApproveTurns off automatic confirmations.
()
guessed
EventClearLockedUnlocks the event.
()
guessed
EventClearModeratorRemoves the moderator status of an invitee of the open event. · by wowlua
(inviteIndex: number)
guessed
EventDeclineDeclines the invitation to the currently open event.
()
guessed
EventGetCalendarTypeReturns the calendar type of the open event, such as "PLAYER" or "GUILD_EVENT". · by wowlua
(): string?
guessed
EventGetClubIdReturns the ID of the community the open event belongs to, or nil. · by wowlua
(): ClubId?
guessed
EventGetInviteReturns status information for an invitee for the currently opened event.
(eventIndex: number): CalendarEventInviteInfo?
guessed
EventGetInviteResponseTimeReturns when an invitee answered the open event's invite. · by wowlua
(eventIndex: number): CalendarTime?
guessed
EventGetInviteSortCriterionReturns how the open event's invite list is sorted, and whether the order is reversed. · by wowlua
(): (string, boolean)
guessed
EventGetSelectedInviteReturns the index of the invitee selected in the open event's invite list, or nil. · by wowlua
(): number?
guessed
EventGetStatusOptionsReturns the statuses that can be chosen for a calendar event. · by wowlua
(eventIndex: number): CalendarEventStatusOption[]
guessed
EventGetTexturesReturns the textures, such as dungeons or raids, that an event of the type can show. · by wowlua
(eventType: CalendarEventType): CalendarEventTextureInfo[]
guessed
EventGetTypesReturns the names of the calendar event types. · by wowlua
(): string[]
guessed
EventGetTypesDisplayOrderedReturns the calendar event types in the order the calendar shows them. · by wowlua
(): CalendarEventTypeDisplayInfo[]
guessed
EventHasPendingInviteReturns whether the player has an unanswered invitation to the currently selected event.
(): boolean
guessed
EventHaveSettingsChangedReturns whether the currently opened event has been modified.
(): boolean
guessed
EventInviteInvites a player to the currently selected event.
(name: string)
guessed
EventRemoveInviteRemoves an invitee from the open event. · by wowlua
(inviteIndex: number)
guessed
EventRemoveInviteByGuidRemoves the invitee with the given GUID from the open event. · by wowlua
(guid: string)
guessed
EventSelectInviteSelects an invitee in the open event's invite list. · by wowlua
(inviteIndex: number)
guessed
EventSetAutoApproveSets the open event to approve sign-ups automatically. · by wowlua
()
guessed
EventSetClubIdSets the community the open event belongs to. · by wowlua
(clubId: ClubId?)
guessed
EventSetDateSets the date for the currently opened event.
(month: number, monthDay: number, year: number)
guessed
EventSetDescriptionSets the open event's description. · by wowlua
(description: string)
guessed
EventSetInviteStatusSets the status of an invitee of the open event. · by wowlua
(eventIndex: number, status: CalendarStatus)
guessed
EventSetLockedLocks the open event, so invitees can no longer change their answer. · by wowlua
()
guessed
EventSetModeratorMakes an invitee of the open event a moderator. · by wowlua
(inviteIndex: number)
guessed
EventSetTextureIDSets the texture, such as a dungeon or raid, of the open event. · by wowlua
(textureIndex: number)
guessed
EventSetTimeSets the time for the currently opened event.
(hour: number, minute: number)
guessed
EventSetTitleSets the title for the currently opened event.
(title: string)
guessed
EventSetTypeSets the event type for the current calendar event.
(typeIndex: CalendarEventType)
guessed
EventSignUpSigns up for the open event. · by wowlua
()
guessed
EventSortInvitesSorts the open event's invite list. · by wowlua
(criterion: string, reverse: boolean)
guessed
EventTentativeAnswers the open event's invite as tentative. · by wowlua
()
guessed
GetClubCalendarEventsReturns a community's calendar events between two times. · by wowlua
(clubId: ClubId, startTime: CalendarTime, endTime: CalendarTime): CalendarDayEvent[]
guessed
GetDayEventReturns information about the specified calendar event.
(monthOffset: number, monthDay: number, index: number): CalendarDayEvent?
implemented
GetDefaultGuildFilterReturns the default level range and rank for inviting guild members to an event. · by wowlua
(): CalendarGuildFilterInfo
implemented
GetEventIndexReturns the month offset, day and index of the open event. · by wowlua
(): CalendarEventIndexInfo?
guessed
GetEventIndexInfoReturns the month offset, day and index of the event with the given ID. · by wowlua
(eventID: CalendarEventID, monthOffset: number?, monthDay: number?): CalendarEventIndexInfo?
guessed
GetEventInfoReturns info for a calendar event.
(): CalendarEventInfo?
guessed
GetFirstPendingInviteReturns the index of the first event on a day that the player has not answered yet, or nil. · by wowlua
(offsetMonths: number, monthDay: number): number?
guessed
GetGuildEventInfoReturns information about one of the guild's upcoming events. · by wowlua
(index: number): CalendarGuildEventInfo?
guessed
GetGuildEventSelectionInfoReturns the month offset, day and index of one of the guild's upcoming events. · by wowlua
(index: number): CalendarEventIndexInfo?
guessed
GetHolidayInfoReturns seasonal holiday info.
(monthOffset: number, monthDay: number, index: number): CalendarHolidayInfo?
guessed
GetMaxCreateDateReturns the last day supported by the Calendar API.
(): CalendarTime
guessed
GetMinDateReturns the first day supported by the Calendar API.
(): CalendarTime
guessed
GetMonthInfoReturns information about the calendar month by offset.
(offsetMonths: number): CalendarMonthInfo
implemented
GetNextClubIdReturns the community the next created calendar event will belong to, or nil. · by wowlua
(): ClubId?
guessed
GetNumDayEventsReturns the number of events for a given day/month offset.
(offsetMonths: number, monthDay: number): number
implemented
GetNumGuildEventsReturns how many upcoming events the guild has. · by wowlua
(): number
guessed
GetNumInvitesReturns the number of invitees for the currently opened event.
(): number
guessed
GetNumPendingInvitesReturns how many calendar invites the player has not answered yet. · by wowlua
(): number
recorded
GetRaidInfoReturns information about a raid lockout shown on the calendar. · by wowlua
(offsetMonths: number, monthDay: number, eventIndex: number): CalendarRaidInfo?
guessed
IsActionPendingWhether the calendar is waiting for the server to answer an action. · by wowlua
(): boolean
guessed
IsEventOpenWhether a calendar event is open for viewing or editing. · by wowlua
(): boolean
guessed
MassInviteCommunityInvites the community's members in a level range, and up to a rank, to the open event. · by wowlua
(clubId: ClubId, minLevel: number, maxLevel: number, maxRankOrder: number?)
guessed
MassInviteGuildInvites the guild's members in a level range, and up to a rank, to the open event. · by wowlua
(minLevel: number, maxLevel: number, maxRankOrder: number)
guessed
OpenCalendarRequests calendar information from the server. Does not open the calendar frame.
()
guessed
OpenEventEstablishes an event for future calendar API calls
(offsetMonths: number, monthDay: number, index: number): boolean
guessed
RemoveEventRemoves the selected event from the calendar (invitees only).
()
guessed
SetAbsMonthSets the reference month and year for functions which use a month offset.
(month: number, year: number)
implemented
SetMonthMoves the month the calendar shows by the given number of months. · by wowlua
(offsetMonths: number)
implemented
SetNextClubIdSets the community the next created calendar event will belong to. · by wowlua
(clubId: ClubId?)
guessed
UpdateEventSaves the selected event.
()
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
CALENDAR_ACTION_PENDINGpending: booleanimplemented
CALENDAR_CLOSE_EVENTno payloadnot implemented
CALENDAR_EVENT_ALARMtitle: string, hour: number, minute: numbernot implemented
CALENDAR_NEW_EVENTisCopy: booleannot implemented
CALENDAR_OPEN_EVENTcalendarType: stringnot implemented
CALENDAR_UPDATE_ERRORerrorReason: stringnot implemented
CALENDAR_UPDATE_ERROR_WITH_COUNTerrorReason: string, count: numbernot implemented
CALENDAR_UPDATE_ERROR_WITH_PLAYER_NAMEerrorReason: string, playerName: stringnot implemented
CALENDAR_UPDATE_EVENTno payloadnot implemented
CALENDAR_UPDATE_EVENT_LISTno payloadnot implemented
CALENDAR_UPDATE_GUILD_EVENTSno payloadnot implemented
CALENDAR_UPDATE_INVITE_LISThasCompleteList: boolean?not implemented
CALENDAR_UPDATE_PENDING_INVITESno payloadnot implemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("CALENDAR_CLOSE_EVENT").

Structures

  • CalendarDayEvent · eventID, title, isCustomTitle, startTime, endTime, calendarType, sequenceType, eventType, iconTexture?, modStatus, inviteStatus, invitedBy, difficulty, inviteType, sequenceIndex, numSequenceDays, difficultyName, dontDisplayBanner, dontDisplayEnd, clubID, isLocked
  • CalendarEventIndexInfo · offsetMonths, monthDay, eventIndex
  • CalendarEventInfo · title, description, creator?, eventType, repeatOption, maxSize, textureIndex?, time, lockoutTime, isLocked, isAutoApprove, hasPendingInvite, inviteStatus?, inviteType?, calendarType, communityName?
  • CalendarEventInviteInfo · name?, level, className?, classFilename?, inviteStatus?, modStatus?, inviteIsMine, type, notes, classID?, guid
  • CalendarEventStatusOption · status, statusString
  • CalendarEventTextureInfo · title, iconTexture, expansionLevel, difficultyId?, mapId?, isLfr?
  • CalendarEventTypeDisplayInfo · displayString, eventType
  • CalendarGuildEventInfo · eventID, year, month, monthDay, weekday, hour, minute, eventType, title, calendarType, texture, inviteStatus, clubID
  • CalendarGuildFilterInfo · minLevel, maxLevel, rank
  • CalendarHolidayInfo · name, description, texture, startTime?, endTime?
  • CalendarMonthInfo · month, year, numDays, firstWeekday
  • CalendarRaidInfo · name, calendarType, raidID, time, difficulty, difficultyName?

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Calendar system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.