WoW:API CanSendAuctionQuery: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(Formatting. Add info about second return value. (canQueryAll))
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
Returns 1 if the auction house can be queried using [[API QueryAuctionItems|QueryAuctionItems]](), nil otherwise. The auction house cannot be queried for 4 seconds after a query is made.
 
Determine if a new auction house query can be sent (via [[API QueryAuctionItems|QueryAuctionItems]]())
 
canQuery,canQueryAll = CanSendAuctionQuery()
 
== Returns ==
 
;canQuery:[[boolean]] - True if a normal auction house query can be made
;canQueryAll:[[boolean]] - True if a full ("getall") auction house query can be made (added in 2.3)
 
== Notes ==
 
The auction house cannot be queried for 4 seconds after a query is made.
 
Full ("getall") queries are only allowed once every ~15 minutes.

Revision as of 07:55, 17 March 2008

WoW API < CanSendAuctionQuery

Determine if a new auction house query can be sent (via QueryAuctionItems())

canQuery,canQueryAll = CanSendAuctionQuery()

Returns

canQuery
boolean - True if a normal auction house query can be made
canQueryAll
boolean - True if a full ("getall") auction house query can be made (added in 2.3)

Notes

The auction house cannot be queried for 4 seconds after a query is made.

Full ("getall") queries are only allowed once every ~15 minutes.