WoW API: CalendarEventInvite

From AddOn Studio
Revision as of 06:10, 7 November 2008 by WoWWiki>Sylpheria (Updated with new information)
Jump to navigation Jump to search

WoW API < CalendarEventInvite

Add's a player to the currently opened event.
CalendarEventInvite("player")

Parameters

Arguments

("player")
player
String - The name of the player to be invited to the event

Returns

nil

Details

This call must be made from within an Event editing session (ie between the New() and Add() calls or between Open() and Update() calls):

function MyCreateEvent()
 CalendarNewEvent() -- Create a new Event
 CalendarEventSetDescription( "description" )
 CalendarEventSetTitle ("title")
 CalendarEventSetDate( 1,11,2008)
 CalendarEventSetTime( 20,00)
 CalendarEventInvite( player )
 CalendarAddEvent() -- Save the Event
end

Inviting a player who is already on the invitation list will result in a "<Player> has already been invited." dialog box appearing.