exe/cqhttp-dbus in CQHTTP-2.1.0 vs exe/cqhttp-dbus in CQHTTP-2.2.0

- old
+ new

@@ -9,11 +9,14 @@ def initialize(*args) @cqhttp = CQHTTP::API.new super end dbus_interface 'org.dastudio.cqhttp' do - dbus_method :call, 'in func:s, in args:s' do |func, args| - @cqhttp.send func, JSON.parse(args, symbolize_names: true) + dbus_method :call, 'in func:s, in args:s, out json:s' do |func, args| + JSON.pretty_generate @cqhttp.send func, JSON.parse( + args, + symbolize_names: true + ) end %i[ message private