Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
This function is restricted.
|
Saves the new event currently being created to the server.
C_Calendar.AddEvent()
Details[]
- Finalizes the event candidate created by C_Calendar.CreatePlayerEvent, C_Calendar.CreateGuildSignUpEvent and similar.
- Requires at least C_Calendar.EventSetTitle, C_Calendar.EventSetDate andC_Calendar.EventSetTime to be set.
- This function is only used to create new events. To save changes to existing events, use C_Calendar.UpdateEvent.
Example[]
Creates an event for tomorrow.
C_Calendar.CreatePlayerEvent()
local d = C_DateAndTime.GetCurrentCalendarTime()
C_Calendar.EventSetDate(d.month, d.monthDay+1, d.year)
C_Calendar.EventSetTime(d.hour, d.minute)
C_Calendar.EventSetTitle("hello")
C_Calendar.AddEvent()
Patch changes[]
Patch 8.0.1 (2018-07-17): Moved to C_Calendar.AddEvent.
Patch 3.0.2 (2008-10-14): Added as CalendarAddEvent.