diff options
Diffstat (limited to 'lib/mattermost/command.rb')
-rw-r--r-- | lib/mattermost/command.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mattermost/command.rb b/lib/mattermost/command.rb index a02745486d6..866338d07f3 100644 --- a/lib/mattermost/command.rb +++ b/lib/mattermost/command.rb @@ -3,10 +3,10 @@ module Mattermost class Command < Client def create(params) - response = session_post('/api/v4/commands', + response = session_post("/api/v4/commands", body: params.to_json) - response['token'] + response["token"] end end end |