View Single Post
12-26-20, 03:44 PM   #3
jpiv
A Defias Bandit
Join Date: Dec 2020
Posts: 3
Thanks for the reply!
I thought that might have to do with it but, when I change

Code:
local sort = {
	sortOrder = Enum.AuctionHouseSortOrder.Buyout,
	reverseOrder = false
}
C_AuctionHouse.SendSearchQuery(auction.itemKey, sort, true)
To

Code:
C_AuctionHouse.SendSearchQuery(auction.itemKey, {sort}, true)
I get this usage error seeming to indicate that I am not using the API correctly? is there maybe something else I'm doing incorrectly or a way to supress this error? Or another addon interfering? Because I did look at other examples which also call that function in the way you suggested:

Code:
Message: Usage: C_AuctionHouse.SendSearchQuery(itemKey, sorts, separateOwnerItems)
Time: Sat Dec 26 16:42:37 2020
Count: 1
Stack: Usage: C_AuctionHouse.SendSearchQuery(itemKey, sorts, separateOwnerItems)
[string "@Interface\AddOns\TradeSkillMaster\LibTSM\Service\ErrorHandler.lua"]:758: in function <...Ons\TradeSkillMaster\LibTSM\Service\ErrorHandler.lua:717>
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: in function `SendSearchQuery'
[string "@Interface\AddOns\UndercutMaster\AH.lua"]:181: in function `getFilteredAuctions'
[string "@Interface\AddOns\UndercutMaster\UndercutManager.lua"]:21: in function `undercut'
[string "@Interface\AddOns\UndercutMaster\UI.lua"]:12: in function <Interface\AddOns\UndercutMaster\UI.lua:11>

Locals: errMsg = "Usage: C_AuctionHouse.SendSearchQuery(itemKey, sorts, separateOwnerItems)"
isBugGrabber = nil
tsmErrMsg = nil
oldModule = nil
private = <table> {
 globalNameTranslation = <table> {
 }
 FormatErrorMessageSection = <function> defined @Interface\AddOns\TradeSkillMaster\LibTSM\Service\ErrorHandler.lua:517
 ErrorHandler = <function> defined @Interface\AddOns\TradeSkillMaster\LibTSM\Service\ErrorHandler.lua:134
 origErrorHandler = <function> defined @Interface\SharedXML\SharedBasicControls.lua:355
 hitInternalError = false
 CreateErrorFrame = <function> defined @Interface\AddOns\TradeSkillMaster\LibTSM\Service\ErrorHandler.lua:536
 num = 0
 SanitizeString = <function> defined @Interface\AddOns\TradeSkillMaster\LibTSM\Service\ErrorHandler.lua:510
  Reply With Quote