code: function() {
  		var query = this.toQuery();
  		return lib.promise.when(query.args).then(function(args) {
  			return {
  				type: query.type,
  				text: query.text,
  				args: args,
  			};
  		});
  	}
docs: .toPromise()