API C GossipInfo.GetOptions

Returns the available gossip options at a quest giver.
 info = C_GossipInfo.GetOptions()
==Returns==
:;info:
Field 	Type	Description
gossipOptionID 	 	This can be nil to avoid automation
name 	 	Text of the gossip item
icon 	 	Icon of the gossip type
rewards 	 	
status 	 	
spellID 	 	
flags 	 	
overrideIconID 	 	
selectOptionWhenOnlyOption	 	
orderIndex 	 	
 GossipOptionRewardInfo
Field 	Type	Description
id 	 	
quantity 	 	
rewardType	 	
 Enum.GossipOptionRewardType
Value	Field 	Description
0 	Item 	
1 	Currency	
 Enum.GossipOptionStatus
Value	Field 	Description
0 	Available 	
1 	Unavailable 	
2 	Locked 	
3 	AlreadyComplete	
==Details==
==Example==
Prints gossip options and automatically selects the vendor gossip when e.g. at an innkeeper.
local function OnEvent(self, event)
	local info = C_GossipInfo.GetOptions()
	for i, v in pairs(info) do
		print(i, v.icon, v.name, v.gossipOptionID)
		if v.icon == 132060 then -- interface/gossipframe/vendorgossipicon.blp
			print("Selecting vendor gossip option.")
			C_GossipInfo.SelectOption(v.gossipOptionID)
		end
	end
end
local f = CreateFrame("Frame")
f:RegisterEvent("GOSSIP_SHOW")
f:SetScript("OnEvent", OnEvent)
==Patch changes==