# File lib/twitter/model.rb, line 314
      def create(params)
        client, text, recipient = params[:client], params[:text], params[:recipient]
        raise ArgumentError, 'Valid client context must be given' unless client.is_a?(Twitter::Client)
        raise ArgumentError, 'Message text must be supplied to send direct message' unless text.is_a?(String)
        raise ArgumentError, 'Recipient user must be specified to send direct message' unless [Twitter::User, Integer, String].member?(recipient.class)
        client.message(:post, text, recipient)
      end