Function: GetChoiceSpawnID(spawn, commandMatch, declineValue)
Description: Spawn represents the Player with the choice window. Return's the spawn_id if the choice was determined from a previously provided CreateChoiceWindow. This remains until ClearChoice is called.
Parameters:
spawn(Spawn) - Spawn object representingspawn.commandMatch(string) - StringcommandMatch.declineValue(uint8) - Integer valuedeclineValue.
Returns: UInt32 of the spawn_id the Player is using the choice dialog with.
Connection lifetime: Each player or group-member connection resolved by this function is retained through the native call. A disconnect or reconnect during a callback cannot destroy that retained connection or switch the ongoing call to a replacement. A later Lua call resolves the current connection. This does not extend the lifetime of unrelated spawn or item userdata.