C_Calendar.OpenEvent

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Townlong-Yak BAD.png  ProfIcons engineering.png  BTNTemp.png C_Calendar.OpenEvent TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.pngCata-Logo-Small.pngWrath-Logo-Small.pngWoW Icon update.png + 8.0.1 / 1.15.0
Wowprogramming.png  BTNTemp.png CalendarOpenEvent + 3.0.2

Establishes an event for future calendar API calls

success = C_Calendar.OpenEvent(offsetMonths, monthDay, index)

Arguments

offsetMonths
number - The number of months to offset from today.
monthDay
number - The day of the month on which the desired event is scheduled (1 - 31).
index
number - Ranging from 1 through C_Calendar.GetNumDayEvents(offsetMonths, monthDay).

Returns

success
boolean

Patch changes

Battle for Azeroth Patch 8.1.5 (2019-03-12): Added success return.
Battle for Azeroth Patch 8.0.1 (2018-07-17): Moved to C_Calendar.OpenEvent()
Wrath-Logo-Small.png Patch 3.0.2 (2008-10-14): Added as CalendarOpenEvent()