1 2 3 4 5 6 7
module Mattermost class Command def self.create(session, team_id, command) session.post("/api/v3/teams/#{team_id}/commands/create", body: command.to_json)['token'] end end end