Returns the type of a calendar event. If all arguments are omitted, uses the event selected by CalendarContextSelectEvent.
See also Calendar functions.
Signature:
calendarType = CalendarContextEventGetCalendarType([monthOffset,] day, index)
Arguments:
monthOffset- Month containing an event relative to the calendar's currently displayed month (number)-1- Month preceding the calendar's current month0- The calendar's current month (i.e. same month as CalendarGetMonth())1- Month after the calendar's current monthnil- Use the event selected byCalendarContextSelectEventand ignore further arguments
day- Day of the month containing an event (number)index- Index of an event on the given day (from1toCalendarGetNumDayEvents()) (number)
Returns:
calendarType- Token identifying the type of event (string)GUILD_ANNOUNCEMENT- Guild announcement (does not allow players to sign up)GUILD_EVENT- Guild event (allows players to sign up)HOLIDAY- World event (e.g. Lunar Festival, Darkmoon Faire, Stranglethorn Fishing Tournament, Call to Arms: Arathi Basin)PLAYER- Player-created event or invitationRAID_LOCKOUT- Indicates when one of the player's saved instances resetsRAID_RESET- Indicates scheduled reset times for major raid instancesSYSTEM- Other server-provided event