lib/twitter/rest/api/direct_messages.rb in twitter-5.4.1 vs lib/twitter/rest/api/direct_messages.rb in twitter-5.5.0

- old
+ new

@@ -107,10 +107,10 @@ # @param ids [Enumerable<Integer>] A collection of direct message IDs. # @overload destroy_direct_message(*ids, options) # @param ids [Enumerable<Integer>] A collection of direct message IDs. # @param options [Hash] A customizable set of options. def destroy_direct_message(*args) - threaded_objects_from_response(Twitter::DirectMessage, :post, '/1.1/direct_messages/destroy.json', args) + parallel_objects_from_response(Twitter::DirectMessage, :post, '/1.1/direct_messages/destroy.json', args) end deprecate_alias :direct_message_destroy, :destroy_direct_message # Sends a new direct message to the specified user from the authenticating user #