pass payload for call_vendor_request

patch bump
This commit is contained in:
onyx-and-iris 2022-11-18 14:52:28 +00:00
parent 0bac7eaf3a
commit c67ce47026
2 changed files with 5 additions and 2 deletions

View File

@ -77,7 +77,10 @@ module OBSWS
end end
def call_vendor_request(name, type_, data = nil) def call_vendor_request(name, type_, data = nil)
call(requestType, requestData) payload = { vendorName: name, requestType: type_ }
payload[:requestData] = data if data
resp = call("CallVendorRequest", payload)
Mixin::Response.new(resp, resp.keys)
end end
def get_hotkey_list def get_hotkey_list

View File

@ -11,7 +11,7 @@ module OBSWS
end end
def patch def patch
2 3
end end
def to_a def to_a