Returns information about a calendar event on a given day. Information can only be retrieved for events which might be visible in the calendar's current month -- i.e. those in the current month as well as those in (roughly) the last week of the previous month and (roughly) the first two weeks of the following month. To reliably retrieve information for events outside the calendar's current month, first change the calendar's month with CalendarSetMonth
.
See also Calendar functions.
Signature:
title,
hour,
minute,
calendarType,
sequenceType,
eventType,
texture,
modStatus,
inviteStatus,
invitedBy,
difficulty,
inviteType
=
CalendarGetDayEvent(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 month
day
- Day of the month containing an event (number
)index
- Index of an event on the given day (from 1 to CalendarGetNumDayEvents()) (number
)
Returns:
title
- Title displayed for the event (string
)hour
- Hour part of the event's start time (on a 24-hour clock) (number
)minute
- Minute part of the event's start time (number
)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
sequenceType
- Display cue for multi-day events, or "" if not applicable (string
)END
- Last day of the eventINFO
- An additional specially-labeled day related the eventONGOING
- Continuation of the eventSTART
- First day of the event
eventType
- Display type for the event; used in the default UI to determine which icon to show (number
)0
- Holiday or other server-provided event1
- Raid dungeon2
- Five-player dungeon3
- PvP event4
- Meeting5
- Other event
texture
- Unique portion of the path to a texture for the event (e.g. "CalendarChildrensWeek"). The mechanism by which a full texture path can be generated is not public API, but can be found in Addons/BlizzardCalendar/Blizzard_Calendar.lua after extracting default UI files with the AddOn Kit. (string
)modStatus
- The player's level of authority for the event, or "" if not applicable (number
)CREATOR
- The player is the original creator of the eventMODERATOR
- The player has been granted moderator status for the event
inviteStatus
- The player's status regarding the event (number
)1
- Invited (also used for non-invitation/non-signup events)2
- Accepted3
- Declined4
- Confirmed5
- Out6
- Standby7
- Signed up8
- Not signed up
invitedBy
- Name of the character who created (or invited the player to) the event (string
)difficulty
- Difficulty of the dungeon or raid instance associated with the event (used only forRAID_LOCKOUT
andRAID_RESET
events, not player-created raid/dungeon events) (number
)1
- Normal2
- Heroic
inviteType
- Invitation/announcement type for the event (number
)1
- Characters can only be explicitly invited to the event (or event is a non-invite/non-signup event)2
- Event is visible to the player's entire guild; guild members can sign up and other characters can be explicitly invited