WoW:API CalendarAddEvent: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(cleanup, boilerplate)
Line 1: Line 1:
{{wowapi}}
{{wowapi}} {{protectedhwapi|3.0.3}}
 
Saves the new event currently being created to the WoW server.
:Saves the current event to the WoW server.
:This works only for new events!
 
  CalendarAddEvent()
  CalendarAddEvent()
== Parameters ==
=== Arguments ===
:No Arguments
=== Returns ===
:''nil''


== Details ==
== Details ==
:Saves the event or announcement created by: [[ :API CalendarNewEvent|CalendarNewEvent]] or [[ :API CalendarNewGuildWideEvent|CalendarNewGuildWideEvent]] having the information set by: [[ :API CalendarEventSetDate|CalendarEventSetDate ]], [[ :API CalendarEventSetDescription|CalendarEventSetDescription ]], [[ :API CalendarEventSetRepeatOption|CalendarEventSetRepeatOption]], [[ :API CalendarEventSetTime|CalendarEventSetTime ]], [[ :API CalendarEventSetTitle|CalendarEventSetTitle]] and [[ :API CalendarEventSetType|CalendarEventSetType ]]
* Saves the event or announcement created by: {{api|CalendarNewEvent}} or {{api|CalendarNewGuildWideEvent}}
 
* Event information can be altered prior to saving using {{api|CalendarEventSetDate}}, {{api|CalendarEventSetDescription}}, {{api|CalendarEventSetRepeatOption}}, {{api|CalendarEventSetTime}}, {{api|CalendarEventSetTitle}}, and {{api|CalendarEventSetType}}.
:NOTE! When you are updating an existing event use [[ :API CalendarUpdateEvent|CalendarUpdateEvent]]
* This function is only used to create '''new''' events. To save changes to existing events, use {{api|CalendarUpdateEvent}}()
 
:NOTE! In patch 3.0.3, this must be called as the result of a hardware event. Addons are blocked from using this call without a user action. Also, [[ :API CalendarEventSetRepeatOption|CalendarEventSetRepeatOption]] is unnecessary. [[User:Jokeyrhyme|jokeyrhyme]] ([[User talk:Jokeyrhyme|talk]]) 01:35, 31 December 2008 (UTC)
 
----
__NOTOC__

Revision as of 00:40, 27 March 2010

WoW API < CalendarAddEvent

Saves the new event currently being created to the WoW server.

CalendarAddEvent()

Details